HHLatch.pre constructor

HHLatch.pre({
  1. required TriggerType triggerType,
  2. String? customEvent,
  3. 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,
  );
}