maybeWhen<TResult extends Object?> method

  1. @optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
  1. TResult setLangIndex(
    1. int index
    )?,
  2. TResult getProfile(
    1. BuildContext context
    )?,
  3. TResult checkMyId(
    1. BuildContext context,
    2. String? code
    )?,
  4. TResult uploadLicense(
    1. BuildContext context
    )?,
  5. TResult setImagesLicense(
    1. String? front,
    2. String? back
    )?,
  6. TResult setOnlineAndOffline(
    1. BuildContext context,
    2. bool value
    )?,
  7. TResult setImagesProfile(
    1. String profile
    )?,
  8. TResult updateProfile(
    1. BuildContext context,
    2. String firstName,
    3. String lastName
    )?,
  9. TResult checkLockerUi(
    1. bool show
    )?,
  10. TResult getReview(
    1. BuildContext context,
    2. RefreshController? controller,
    3. bool? isRefresh
    )?,
  11. required TResult orElse(),
})
inherited

Implementation

@optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
  TResult Function(int index)? setLangIndex,
  TResult Function(BuildContext context)? getProfile,
  TResult Function(BuildContext context, String? code)? checkMyId,
  TResult Function(BuildContext context)? uploadLicense,
  TResult Function(String? front, String? back)? setImagesLicense,
  TResult Function(BuildContext context, bool value)? setOnlineAndOffline,
  TResult Function(String profile)? setImagesProfile,
  TResult Function(BuildContext context, String firstName, String lastName)?
      updateProfile,
  TResult Function(bool show)? checkLockerUi,
  TResult Function(BuildContext context, RefreshController? controller,
          bool? isRefresh)?
      getReview,
  required TResult orElse(),
}) =>
    throw _privateConstructorUsedError;