whenOrNull<TResult extends Object?> method

  1. @optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
  1. TResult? blocking(
    1. ModerationCauseBlocking data
    )?,
  2. TResult? blockedBy(
    1. ModerationCauseBlockedBy data
    )?,
  3. TResult? blockOther(
    1. ModerationCauseBlockOther data
    )?,
  4. TResult? label(
    1. ModerationCauseLabel data
    )?,
  5. TResult? muted(
    1. ModerationCauseMuted data
    )?,
  6. TResult? muteWord(
    1. ModerationCauseMuteWord data
    )?,
  7. TResult? hidden(
    1. ModerationCauseHidden data
    )?,
})
inherited

Implementation

@optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
  TResult? Function(ModerationCauseBlocking data)? blocking,
  TResult? Function(ModerationCauseBlockedBy data)? blockedBy,
  TResult? Function(ModerationCauseBlockOther data)? blockOther,
  TResult? Function(ModerationCauseLabel data)? label,
  TResult? Function(ModerationCauseMuted data)? muted,
  TResult? Function(ModerationCauseMuteWord data)? muteWord,
  TResult? Function(ModerationCauseHidden data)? hidden,
}) =>
    throw _privateConstructorUsedError;