match method
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 int) {
return pid == null || data == pid;
}
return false;
}