runner property

CommandRunner? get runner
inherited

The command runner for this command.

This will be null until CommandRunner.addCommand has been called with this command or one of its parents.

Implementation

CommandRunner<T>? get runner {
  if (parent == null) return _runner;
  return parent!.runner;
}