loadStorage method

Future<ParseFile> loadStorage()

Implementation

Future<ParseFile> loadStorage() async {
  final File possibleFile = File('${ParseCoreData().fileDirectory}/$name');
  // ignore: avoid_slow_async_io
  final bool exists = await possibleFile.exists();

  if (exists) {
    file = possibleFile;
  } else {
    file = null;
  }

  return this;
}