maybeWhen<TResult extends Object?> method

  1. @optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
  1. TResult sendCode(
    1. BuildContext context,
    2. String phone,
    3. VoidCallback? onSuccess
    )?,
  2. TResult checkCode(
    1. BuildContext context,
    2. String phone,
    3. String code,
    4. VoidCallback? onSuccess,
    )?,
  3. TResult logout(
    1. BuildContext context,
    2. VoidCallback? onSuccess
    )?,
  4. required TResult orElse(),
})
inherited

Implementation

@optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
  TResult Function(
          BuildContext context, String phone, VoidCallback? onSuccess)?
      sendCode,
  TResult Function(BuildContext context, String phone, String code,
          VoidCallback? onSuccess)?
      checkCode,
  TResult Function(BuildContext context, VoidCallback? onSuccess)? logout,
  required TResult orElse(),
}) =>
    throw _privateConstructorUsedError;