maybeWhen<TResult extends Object?> method
- @optionalTypeArgs
- TResult postView(
- PostView data
- TResult notFoundPost(
- NotFoundPost data
- TResult blockedPost(
- BlockedPost data
- TResult unknown()?,
- 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;