hasFrame method
Implementation
bool hasFrame({String? reason, String? dirtySource}) {
return frames.any((frame) {
if (reason != null && frame['reason'] != reason) return false;
if (dirtySource == null) return true;
final sources = frame['dirtySources'];
return sources is List<Object?> && sources.contains(dirtySource);
});
}