RootState constructor

const RootState({
  1. bool isUserLoggedIn = false,
  2. MerchantType merchantType = MerchantType.shopify,
  3. SingleUseData? error,
  4. bool isLoading = false,
  5. bool notifications = true,
  6. bool otpSent = false,
  7. bool isNewUser = false,
  8. bool emailOtpSent = false,
  9. bool isSuccess = false,
  10. List<MultipleEmail> multipleEmails = const [],
  11. String? gender,
  12. RootScreenStep currentStep = RootScreenStep.phoneInput,
  13. bool isDevBuild = false,
  14. String reqId = '',
  15. String? shopifyCustomerId,
  16. String? lastSubmittedPhone,
  17. String? lastSubmittedEmail,
})

Implementation

const RootState({
  this.isUserLoggedIn = false,
  this.merchantType = MerchantType.shopify,
  this.error,
  this.isLoading = false,
  this.notifications = true,
  this.otpSent = false,
  this.isNewUser = false,
  this.emailOtpSent = false,
  this.isSuccess = false,
  this.multipleEmails = const [],
  this.gender,
  this.currentStep = RootScreenStep.phoneInput,
  this.isDevBuild = false,
  this.reqId = '',
  this.shopifyCustomerId,
  this.lastSubmittedPhone,
  this.lastSubmittedEmail,
});