whenOrNull<TResult extends Object?> method
- @optionalTypeArgs
- TResult? postView(
- PostView data
- TResult? notFoundPost(
- NotFoundPost data
- TResult? blockedPost(
- BlockedPost data
- TResult? unknown()?,
inherited
Implementation
@optionalTypeArgs
TResult? whenOrNull<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,
}) =>
throw _privateConstructorUsedError;