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