init method

Future<String> init()

Implementation

Future<String> init() async {
  final directory = await _getDocumentsDirectory();
  final morphrDir = Directory(path.join(directory.path, 'morphr'));

  if (!await morphrDir.exists()) {
    await morphrDir.create(recursive: true);
  }

  final filePath = path.join(morphrDir.path, fileName);
  _localPath = filePath;
  return filePath;
}