initStorageDir static method

Future<Directory?> initStorageDir()

Implementation

static Future<Directory?> initStorageDir() async {
  if (_storageDir == null) {
    if (Platform.isAndroid) {
      _storageDir = await getExternalStorageDirectory();
    }
  }
  return _storageDir;
}