AFCommandAppExtensionContext class
The extension context used by the app itself to register commands.
- Inheritance
-
- Object
- AFBaseExtensionContext
- AFCommandLibraryExtensionContext
- AFCommandAppExtensionContext
Constructors
- AFCommandAppExtensionContext({required AFDartParams paramsD, required AFCommandRunner commands})
Properties
- commands → AFCommandRunner
-
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- paramsD → AFDartParams
-
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- templates → AFTemplateRegistry
-
finalinherited
Methods
-
defineCommand(
AFCommand command, {}) → AFCommand -
Used to register a new root level command
command line.
inherited
-
execute(
AFCommandContext context) → Future< void> -
findCommandByType<
T extends AFCommand> () → AFCommand? -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
registerBootstrapCommands(
) → void -
registerConfigurationItem(
AFConfigurationItem entry) → void -
Used to register a configuration item that appears in xxx_config.g.dart.
inherited
-
registerLibrary(
AFLibraryID id) → void -
Used to register the exists of an integrated AFib-aware library.
inherited
-
registerStandardCommands(
) → void -
registerTemplateFile(
AFFileSourceTemplate source) → void -
inherited
-
registerTemplateSnippet(
AFSnippetSourceTemplate source) → void -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited