whenOrNull<TResult extends Object?> method

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

Implementation

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