maybeWhen<TResult extends Object?> method

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

Implementation

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