maybeWhen<TResult extends Object?> method

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

Implementation

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