checkPermission method Null safety

Future<void> checkPermission()

Checks if user has granted permissions for storage.

If permission is not granted, it'll be requested.

Implementation

Future<void> checkPermission() async => await Permission.storage.request();