not

open operator override fun not()

Stops the motor when the logical not operator (!) is applied to this instance.

Example:

!motor  // calls stopMotor()