when<TResult extends Object?> method

  1. @optionalTypeArgs
TResult when<TResult extends Object?>({
  1. required TResult threadViewPost(
    1. ThreadViewPost data
    ),
  2. required TResult notFoundPost(
    1. NotFoundPost data
    ),
  3. required TResult blockedPost(
    1. BlockedPost data
    ),
  4. required TResult unknown(
    1. Map<String, dynamic> data
    ),
})
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;