HHLatch.pre constructor
HHLatch.pre({
- required TriggerType triggerType,
- String? customEvent,
- int priority = 0,
Creates a pre-execution latch for the given trigger type.
Implementation
factory HHLatch.pre({
required TriggerType triggerType,
String? customEvent,
int priority = 0,
}) {
return HHLatch(
triggerType: triggerType,
isPost: false,
customEvent: customEvent,
priority: priority,
);
}