MiscState constructor
MiscState({
- String? visitCount,
- String? title,
- String? message,
- String? phoneNumber,
- String? otpCode,
- String? pinCode,
- bool? acceptedTerms,
- List<
FAQContent?> ? faqList, - EventState? eventState,
- String? defaultLocation,
- String? createPin,
- String? confirmPin,
- bool? invalidCredentials,
- bool? unKnownPhoneNo,
- bool? accountExists,
- bool? invalidPin,
- @JsonKey(ignore: true) Event<
bool?> ? startVisitFailed, - String? patientSearchTerm,
- bool? hasCompletedEnteringOTP,
- bool? isResendingOTP,
Implementation
factory MiscState({
String? visitCount,
String? title,
String? message,
String? phoneNumber,
String? otpCode,
String? pinCode,
bool? acceptedTerms,
List<FAQContent?>? faqList,
EventState? eventState,
/// [defaultLocation] the location(branch) that the user has chosen
String? defaultLocation,
/// [createPin] used when user is creating a PIN.
String? createPin,
/// [confirmPin] used when user is creating a PIN for client side validation
String? confirmPin,
/// [invalidCredentials] indicates the provided credentials are invalid.
bool? invalidCredentials,
/// [unKnownPhoneNo] indicates that the provided phone number is not known by the backend.
bool? unKnownPhoneNo,
/// [accountExists] a signal to the frontend that an account with the provided credentials already exists.
bool? accountExists,
/// [invalidPin] used when running pin verification procedure.
bool? invalidPin,
/// notify user when the start visit action process fails
@JsonKey(ignore: true)
Event<bool?>? startVisitFailed, // TODO: rename to startVisitFailedEvent
String? patientSearchTerm,
bool? hasCompletedEnteringOTP, // TODO: remove it is unused
bool? isResendingOTP, // TODO: remove, it is unused
}) = _MiscState;