onDispose property

  1. @override
List<Message> get onDispose
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 => [ScienceCommand(stop: true)];