38 lines
651 B
Dart
38 lines
651 B
Dart
|
|
abstract class OTPEvent {
|
|
const OTPEvent();
|
|
|
|
List<Object> get props => [];
|
|
}
|
|
|
|
class RequestOTP extends OTPEvent {
|
|
final Map<String, dynamic> OTPRequestData;
|
|
RequestOTP(this.OTPRequestData);
|
|
|
|
@override
|
|
List<Object> get props => [OTPRequestData];
|
|
|
|
}
|
|
class VerifyOTP extends OTPEvent {
|
|
VerifyOTP();
|
|
|
|
|
|
}
|
|
abstract class OTPState{}
|
|
class OTPInitial extends OTPState {}
|
|
|
|
class OTPLoading extends OTPState {}
|
|
|
|
class OTPLoaded extends OTPState {}
|
|
|
|
class OTPFailed extends OTPState {
|
|
final String failedmessage;
|
|
|
|
OTPFailed(this.failedmessage);
|
|
}
|
|
class OTPError extends OTPState {
|
|
final String errormessage;
|
|
|
|
OTPError(this.errormessage);
|
|
}
|