checkPermission method

bool checkPermission(
  1. String domain, [
  2. Object? data
])

Check if a permission is granted.

Implementation

bool checkPermission(String domain, [Object? data]) {
  return _permissions[domain]?.any((element) => element.match(data)) ?? false;
}