initWA function

void initWA({
  1. required dynamic screen,
  2. required String domain,
  3. required String apiUrl,
  4. required Color theme,
  5. required Color primary,
  6. required Color secondary,
  7. required bool loginRequired,
  8. String? firebaseToken,
})

Implementation

void initWA({
  required dynamic screen,
  required String domain,
  required String apiUrl,
  required Color theme,
  required Color primary,
  required Color secondary,
  required bool loginRequired,
  String? firebaseToken,
}) {
  homeScreen = screen;
  businessDomain = domain;
  baseUrl = apiUrl;
  themeColor = theme;
  primaryColor = primary;
  secondaryColor = secondary;
  isLoginRequired = loginRequired;
  fcmToken = firebaseToken ?? "";
}