Executor constructor

Executor(
  1. String name,
  2. String shortDescription,
  3. String version,
  4. List<Command> commands, {
  5. String? longDescription,
  6. List<AccessorListOption>? accessors,
  7. List<Flag>? flags,
  8. List<Option>? options,
  9. List<String>? defaultCommandPath,
  10. MambaContext? context,
  11. HelpFormatter? helpFormatter,
})

Implementation

new(
  this.name,
  this.shortDescription,
  String version,
  List<Command> commands, {
  this.longDescription,
  List<AccessorListOption>? accessors,
  List<Flag>? flags,
  List<Option>? options,
  List<String>? defaultCommandPath,
  this.context,
  this.helpFormatter,
}) : _version = _validateVersion(version),
     commands = List.unmodifiable(commands),
     accessors = List.unmodifiable(accessors ?? const []),
     flags = List.unmodifiable(flags ?? const []),
     options = List.unmodifiable(options ?? const []),
     defaultCommandPath = defaultCommandPath == null
         ? null
         : List.unmodifiable(defaultCommandPath);