whenOrNull<TResult extends Object?> method

  1. @optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
  1. TResult? threadViewPost(
    1. ThreadViewPost data
    )?,
  2. TResult? notFoundPost(
    1. NotFoundPost data
    )?,
  3. TResult? blockedPost(
    1. BlockedPost data
    )?,
  4. TResult? unknown(
    1. Map<String, dynamic> data
    )?,
})
inherited

Implementation

@optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
  TResult? Function(ThreadViewPost data)? threadViewPost,
  TResult? Function(NotFoundPost data)? notFoundPost,
  TResult? Function(BlockedPost data)? blockedPost,
  TResult? Function(Map<String, dynamic> data)? unknown,
}) =>
    throw _privateConstructorUsedError;