findMatch method

Returns the first enabled rule that matches context.

Implementation

InfospectNetworkBreakpoint? findMatch(
  InfospectBreakpointMatchContext context,
) {
  for (final rule in breakpoints.value) {
    if (rule.matches(context)) {
      return rule;
    }
  }
  return null;
}