config static method

Future<void> config({
  1. String? fontName,
  2. required String locale,
})

Implementation

static Future<void> config({String? fontName, required String locale}) async {
  await SharedPrefsHelper().initialize();
  prefsHelper.setFontName(fontName);
  if (prefsHelper.getLocale() == null) {
    prefsHelper.setLocale(locale);
  }
}