hasPermissions method

Future<bool> hasPermissions()

Returns the result of record permission if not determined(app first launch), this will ask user to whether grant the permission

Implementation

Future<bool> hasPermissions() async {
  allPermissionsGranted = await platform.hasPermissions();
  _hasPermissionsCallback(allPermissionsGranted);
  return allPermissionsGranted;
}