Command<P> class abstract

A generic command.

  • P is the prepared instance shared between executions.
Inheritance
Implementers

Constructors

Command.new({CommandLogInfo? logInfo, CommandLogError? logError})

Properties

commandType String
The type of the command. Disposes the command resources.
no setter
executionGroup String
The execution group of the command.
no setter
hashCode int
The hash code for this object.
no setterinherited
logError CommandLogError?
Logs an ERROR message.
getter/setter pairinherited
logInfo CommandLogInfo?
Logs an INFO message.
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispose(P? prepared) Future<void>
Dispose this command resources and prepared instance.
execute({P? prepared}) Future<bool>
Executes the command and returns true if successful.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
prepare() Future<P?>
Prepared the command to be executed.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited