ICommandable class Null safety

An interface for commandable objects, which are part of the command design pattern. The commandable object exposes its functonality as commands and events groupped into a CommandSet. This interface is typically implemented by controllers and is used to auto generate external interfaces. See CommandSet

Example

class MyDataController implements ICommandable, IMyDataController {
  MyDataCommandSet _commandSet;
  CommandSet getCommandSet() {
    if (_commandSet == null)
      _commandSet =  MyDataCommandSet(this);
    return _commandSet;
  }
  ...
}

See CommandSet examples

Constructors

ICommandable()

Properties

hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

getCommandSet() CommandSet
Gets a command set with all supported commands and events. Returns a command set with commands and events. See CommandSet
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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