Mitt class
Constructors
- Mitt()
Properties
Methods
-
emit(
Symbol type, dynamic arg) → void -
emit event by
type
. and passarg
as parameter when calling it. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
off(
Symbol type, {MittEventHandler? eventHandler, MittWildcardEventHandler? wildcardHandler}) → void -
remove specific
handler
with eventtype
or leave null will remove all handlers iftype
is not wildcard. use MittEventHandler aseventHandler
iftype
is wildcard. use MittWildcardEventHandler aswildcardHandler
-
on(
Symbol type, {MittEventHandler? eventHandler, MittWildcardEventHandler? wildcardHandler}) → void -
subscribe event
type
with eventhandler
iftype
is not wildcard. use MittEventHandler aseventHandler
iftype
is wildcard. use MittWildcardEventHandler aswildcardHandler
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
-
operator [](
dynamic type) → dynamic -
get specific events by
type