when<TResult extends Object?> method
- @optionalTypeArgs
- required TResult threadViewPost(
- ThreadViewPost 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(ThreadViewPost data) threadViewPost,
required TResult Function(NotFoundPost data) notFoundPost,
required TResult Function(BlockedPost data) blockedPost,
required TResult Function(Map<String, dynamic> data) unknown,
}) =>
throw _privateConstructorUsedError;