maybeWhen<TResult extends Object?> method

  1. @optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
  1. TResult modEventTakedown(
    1. ModEventTakedown data
    )?,
  2. TResult modEventReverseTakedown(
    1. ModEventReverseTakedown data
    )?,
  3. TResult modEventComment(
    1. ModEventComment data
    )?,
  4. TResult modEventReport(
    1. ModEventReport data
    )?,
  5. TResult modEventLabel(
    1. ModEventLabel data
    )?,
  6. TResult modEventAcknowledge(
    1. ModEventAcknowledge data
    )?,
  7. TResult modEventEscalate(
    1. ModEventEscalate data
    )?,
  8. TResult modEventMute(
    1. ModEventMute data
    )?,
  9. TResult modEventUnmute(
    1. ModEventUnmute data
    )?,
  10. TResult modEventMuteReporter(
    1. ModEventMuteReporter data
    )?,
  11. TResult modEventUnmuteReporter(
    1. ModEventUnmuteReporter data
    )?,
  12. TResult modEventEmail(
    1. ModEventEmail data
    )?,
  13. TResult modEventResolveAppeal(
    1. ModEventResolveAppeal data
    )?,
  14. TResult modEventDivert(
    1. ModEventDivert data
    )?,
  15. TResult modEventTag(
    1. ModEventTag data
    )?,
  16. TResult unknown(
    1. Map<String, dynamic> data
    )?,
  17. required TResult orElse(),
})
inherited

Implementation

@optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
  TResult Function(ModEventTakedown data)? modEventTakedown,
  TResult Function(ModEventReverseTakedown data)? modEventReverseTakedown,
  TResult Function(ModEventComment data)? modEventComment,
  TResult Function(ModEventReport data)? modEventReport,
  TResult Function(ModEventLabel data)? modEventLabel,
  TResult Function(ModEventAcknowledge data)? modEventAcknowledge,
  TResult Function(ModEventEscalate data)? modEventEscalate,
  TResult Function(ModEventMute data)? modEventMute,
  TResult Function(ModEventUnmute data)? modEventUnmute,
  TResult Function(ModEventMuteReporter data)? modEventMuteReporter,
  TResult Function(ModEventUnmuteReporter data)? modEventUnmuteReporter,
  TResult Function(ModEventEmail data)? modEventEmail,
  TResult Function(ModEventResolveAppeal data)? modEventResolveAppeal,
  TResult Function(ModEventDivert data)? modEventDivert,
  TResult Function(ModEventTag data)? modEventTag,
  TResult Function(Map<String, dynamic> data)? unknown,
  required TResult orElse(),
}) =>
    throw _privateConstructorUsedError;