isNotificationPermissionGrantedSync static method

bool isNotificationPermissionGrantedSync(
  1. PermissionStatus permissionStatus
)

Implementation

static bool isNotificationPermissionGrantedSync(
    PermissionStatus permissionStatus) {
  return permissionStatus.isGranted ||
      permissionStatus.isLimited ||
      permissionStatus.isProvisional;
}