Trigger.onWrite constructor

Trigger.onWrite({
  1. required OnEvent onEvent,
  2. bool? beforeNeed,
  3. bool? afterNeed,
  4. String? key,
})

Implementation

factory Trigger.onWrite(
    {required OnEvent onEvent,
    bool? beforeNeed,
    bool? afterNeed,
    String? key}) {
  return Trigger._(TriggerType.onWrite, onEvent, beforeNeed ?? false,
      afterNeed ?? false, key);
}