permissionsRequest method Null safety

Future<bool> permissionsRequest()

Used to request Android permissions.

Important:

  • This method will always return a bool.
  • If return true [READ] and [WRITE] permissions is Granted, else [READ] and [WRITE] is Denied.

Platforms:

AndroidIOSWeb
✔️✔️

See more about platforms support

Implementation

Future<bool> permissionsRequest() async {
  return platform.permissionsRequest();
}