maybeWhen<TResult extends Object?> method

  1. @optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
  1. TResult postView(
    1. PostView data
    )?,
  2. TResult notFoundPost(
    1. NotFoundPost data
    )?,
  3. TResult blockedPost(
    1. BlockedPost data
    )?,
  4. TResult unknown(
    1. Map<String, dynamic> data
    )?,
  5. required TResult orElse(),
})
inherited

Implementation

@optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
  TResult Function(PostView data)? postView,
  TResult Function(NotFoundPost data)? notFoundPost,
  TResult Function(BlockedPost data)? blockedPost,
  TResult Function(Map<String, dynamic> data)? unknown,
  required TResult orElse(),
}) =>
    throw _privateConstructorUsedError;