when<TResult extends Object?> method

  1. @optionalTypeArgs
TResult when<TResult extends Object?>({
  1. required TResult profileViewBasic(
    1. ActorBasic data
    ),
  2. required TResult profileView(
    1. Actor data
    ),
  3. required TResult profileViewDetailed(
    1. ActorProfile data
    ),
})
inherited

Implementation

@optionalTypeArgs
TResult when<TResult extends Object?>({
  required TResult Function(ActorBasic data) profileViewBasic,
  required TResult Function(Actor data) profileView,
  required TResult Function(ActorProfile data) profileViewDetailed,
}) =>
    throw _privateConstructorUsedError;