hasPermissions method

Future<bool?> hasPermissions()

Check your app has permissions to access the calendar events

Implementation

Future<bool?> hasPermissions() async {
  bool? hasPermission = false;
  try {
    hasPermission = await _channel.invokeMethod('hasPermissions');
  } catch (e) {
    print(e);
  }

  return hasPermission;
}