saveMerchantDetails static method

Future<void> saveMerchantDetails(
  1. String merchantIntegrationType,
  2. String headingBgColor,
  3. String bgColor,
  4. String menuColor,
  5. String footerColor,
)

Implementation

static Future<void> saveMerchantDetails(String merchantLogo, String merchantIntegrationType,
    String headingBgColor, String bgColor, String menuColor, String footerColor) async{
  final SharedPreferences sharedPreferences = await SharedPreferences.getInstance();
  sharedPreferences.setString(SharedPreferenceUtils.merchantLogo, merchantLogo);
  sharedPreferences.setString(SharedPreferenceUtils.merchantIntegrationType, merchantIntegrationType);
  sharedPreferences.setString(SharedPreferenceUtils.headingBgColor, headingBgColor);
  sharedPreferences.setString(SharedPreferenceUtils.bgColor, bgColor);
  sharedPreferences.setString(SharedPreferenceUtils.menuColor, menuColor);
  sharedPreferences.setString(SharedPreferenceUtils.footerColor, footerColor);
}