Trigger.onCreate constructor

Trigger.onCreate({
  1. required OnEvent onEvent,
  2. String? key,
})

Implementation

factory Trigger.onCreate({required OnEvent onEvent, String? key}) {
  return Trigger._(TriggerType.onCreate, onEvent, false, false, key);
}