mapOrNull<TResult extends Object?> method

  1. @optionalTypeArgs
TResult? mapOrNull<TResult extends Object?>({
  1. TResult? blocking(
    1. UModerationCauseBlocking value
    )?,
  2. TResult? blockedBy(
    1. UModerationCauseBlockedBy value
    )?,
  3. TResult? blockOther(
    1. UModerationCauseBlockOther value
    )?,
  4. TResult? label(
    1. UModerationCauseLabel value
    )?,
  5. TResult? muted(
    1. UModerationCauseMuted value
    )?,
  6. TResult? muteWord(
    1. UModerationCauseMuteWord value
    )?,
  7. TResult? hidden(
    1. UModerationCauseHidden value
    )?,
})
inherited

Implementation

@optionalTypeArgs
TResult? mapOrNull<TResult extends Object?>({
  TResult? Function(UModerationCauseBlocking value)? blocking,
  TResult? Function(UModerationCauseBlockedBy value)? blockedBy,
  TResult? Function(UModerationCauseBlockOther value)? blockOther,
  TResult? Function(UModerationCauseLabel value)? label,
  TResult? Function(UModerationCauseMuted value)? muted,
  TResult? Function(UModerationCauseMuteWord value)? muteWord,
  TResult? Function(UModerationCauseHidden value)? hidden,
}) =>
    throw _privateConstructorUsedError;