onDispose property
- @override
override
A list of commands that disables the subsystem.
For example, after driving this should set the speed to 0.
Implementation
@override
List<Message> get onDispose => [
DriveCommand(setThrottle: true, throttle: 0),
DriveCommand(setLeft: true, left: 0),
DriveCommand(setRight: true, right: 0),
];