isStorageEnabled method

Future<bool> isStorageEnabled()

Checks if storage permissions are granted.

Returns true if storage permissions are granted, otherwise false.

Implementation

Future<bool> isStorageEnabled() async {
  await Permission.storage.request();
  return await Permission.storage.isGranted;
}