match method

  1. @override
bool match([
  1. Object? data
])
override

Returns true if the permission allows access to the specified resource. If the permission is granular, the data parameter may be used to specify a specific resource (e.g. a URL for a network permission).

Implementation

@override
bool match([Object? data]) {
  if (data is String) {
    return matchPattern.matchAsPrefix(data) != null;
  }
  return false;
}