checkInit static method
dynamic
checkInit()
Implementation
static checkInit() {
if (sharedPreferences == null) throw Exception('''\n
PrefService not initialized.
Call await PrefService.init() before any other PrefService call.
main() async {
await PrefService.init();
runApp(MyApp());
}
''');
}