dispose method

  1. @override
Future<void> dispose()
override

Closes the connection to the device.

Implementation

@override
Future<void> dispose() async {
  currentPath = null;
  currentCommand = null;
  currentState = AutonomyState.AUTONOMY_STATE_UNDEFINED;
  traversed.clear();
  await super.dispose();
}