matches method
model (a model map, as given to a builder) is removed.
Implementation
bool matches(Map<String, dynamic> model) {
final content = model[NOTIFICATION_CONTENT];
if (content is! Map) return false;
if (id != null) return content[NOTIFICATION_ID] == id;
if (channelKey != null) {
return content[NOTIFICATION_CHANNEL_KEY] == channelKey;
}
if (groupKey != null) return content[NOTIFICATION_GROUP_KEY] == groupKey;
return true;
}