init method
Implementation
Future<void> init({int securePreferencesBoxNo = 1, int fileCacheBoxVersion = 1}) async {
await Hive.initFlutter('mcg');
preferences = MyPreferences();
await preferences.init();
_prepareSecureKey();
securePreferences = SecurePreferences();
await securePreferences.init(boxNo: securePreferencesBoxNo);
fileCacheBox = await Hive.openBox('cacheBox$fileCacheBoxVersion');
}