run method Null safety

FutureOr<T>? run()

Runs this command.

The return value is wrapped in a Future if necessary and returned by CommandRunner.runCommand.

Implementation

FutureOr<T>? run() {
  throw UnimplementedError(_wrap('Leaf command $this must implement run().'));
}