runAsLeaf method

  1. @override
FutureOr<T?> runAsLeaf(
  1. CommandContext<O, T> context
)

Runs this command as a leaf command.

Invoked only when this command is the last command on the command line.

Implementation

@override
FutureOr<T?> runAsLeaf(final CommandContext<O, T> context) {
  return run(context);
}