PluginHookContext class
Context passed to hook callbacks with event information
Constructors
-
PluginHookContext({required PluginHookType hookType, String? pluginName, Map<
String, dynamic> data = const {}, required DateTime timestamp}) -
const
-
PluginHookContext.now({required PluginHookType hookType, String? pluginName, Map<
String, dynamic> data = const {}}) -
Create a hook context for the current moment
factory
Properties
-
data
→ Map<
String, dynamic> -
Event-specific data payload
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hookType → PluginHookType
-
The hook type being fired
final
- pluginName → String?
-
Name of the plugin that registered this hook (if applicable)
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- timestamp → DateTime
-
Timestamp of when the hook was fired
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited