init method

Future<void> init()

Implementation

Future<void> init() async {
  basePath = await getAppDir();
  storagePath = '$basePath/.storage';

  // create basePath + ".storage" folder if not exists
  if (!Directory(storagePath).existsSync()) {
    Directory(storagePath).createSync();
  }

  // create the masterPassword
  masterPassword = toMD5(seeder.toString());

  isReady = true;
}