HHLatch class

Defines when and how an action hook should be triggered. Use HHLatch.pre for pre-execution hooks or HHLatch.custom for custom events.

Constructors

HHLatch({required TriggerType triggerType, bool isPost = true, String? customEvent, int priority = 0})
const
HHLatch.custom({required String eventName, bool isPost = true, int priority = 0})
factory
HHLatch.pre({required TriggerType triggerType, String? customEvent, int priority = 0})
Creates a pre-execution latch for the given trigger type.
factory

Properties

customEvent String?
final
hashCode int
The hash code for this object.
no setterinherited
isPost bool
final
priority int
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
triggerType TriggerType
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