Registry<S> class
Registry — реестр команд и соответствующих им обработчиков.
Хранит соответствие между типами команд и их обработчиками.
Позволяет регистрировать, удалять и получать обработчики по типу команды.
Тип S — тип состояния CommandBus.
- Implementers
Constructors
- Registry()
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getHandler(
Command< Object?> command) → CommandHandler<dynamic, dynamic, S> -
Возвращает обработчик для переданной команды
command. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
register<
C extends Command< (R> , R>CommandHandler< C, R, S> handler) → void -
Регистрирует обработчик для команды
C. -
toString(
) → String -
A string representation of this object.
inherited
-
unregister<
C extends Command< (Object?> >{bool silent = false}) → void -
Отменяет регистрацию обработчика для команды
C.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited