hasFrame method

bool hasFrame({
  1. String? reason,
  2. String? dirtySource,
})

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);
  });
}