ActionRegistry class final
In-memory registry owned by an FcmActionsClient instance.
Constructors
Properties
-
actions
→ UnmodifiableMapView<
String, NotificationAction> -
Registered action definitions keyed by id.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
clear(
) → void - Removes every definition and handler.
-
find(
String id) → NotificationAction? -
Returns the definition for
id, if registered. -
handlerFor(
String id) → NotificationActionCallback? -
Returns the handler for
id, if registered. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
register(
NotificationAction action, {NotificationActionCallback? handler}) → void - Adds or replaces an action definition.
-
registerAll(
Iterable< NotificationAction> actions) → void -
Registers every action in
actions. -
registerHandler(
String actionId, NotificationActionCallback handler) → void -
Binds a handler to
actionIdwithout changing the definition. -
toString(
) → String -
A string representation of this object.
inherited
-
unregister(
String id) → bool -
Removes the definition and handler for
id.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited