Base class for ViewController objects.
This class serves as the base class for all ViewController objects in your application. It provides common properties and methods that can be used by subclasses.
Properties
- action ↔ ServerAction?
-
Related action.
getter/setter pair
- attributes ↔ ViewAttribute
-
Typed attributes object (view properties).
getter/setter pair
-
commandChannel
↔ StreamController<
RemoteCommand> -
A stream of animation commands.
getter/setter pair
- driver ↔ UIDriver
-
Reference to the UIDriver instance.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- id ↔ String
-
Id for current controller, same with ElementTreeEntry id.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tag ↔ String?
-
Tag for the controller.
getter/setter pair
- type ↔ String
-
Element type.
getter/setter pair
Methods
-
addListener(
VoidCallback listener) → void - Add a listener to ChangeNotifier.
-
detach(
) → void - Detach current controller from the driver.
-
dispose(
) → void - Dispose the controller.
-
emitCommand(
RemoteCommand command) → FutureOr< void> - Emit a command.
-
listenCommand(
Future< void> callback(RemoteCommand command)) → void - Listen for commands.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
performAction(
ServerAction? action) → void - Perform the passed action.
-
performActionAsync(
ServerAction? action) → Future< void> - Perform the passed action asynchronously.
-
performRelatedAction(
) → void - Perform the related action.
-
performRelatedActionAsync(
) → Future< void> - Perform the related action asynchronously.
-
removeCommandListener(
) → void - Remove the command listener.
-
removeListener(
VoidCallback listener) → void - RemoveListener the ChangeNotifier.
-
toString(
) → String -
A string representation of this object.
inherited
-
updateState(
Map< String, dynamic> newState) → void - Update the state.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited