findNextEvent method

FlutsterTestEvent? findNextEvent(
  1. FlutsterTestEvent flutsterTestEvent
)

findNextEvent returns the event that was recorded right after the given one. Returns null in case the given event was the last one.

Implementation

FlutsterTestEvent? findNextEvent(FlutsterTestEvent flutsterTestEvent) {
  int index = findEventIndex(flutsterTestEvent);
  if (index == events.length - 1) {
    return (null);
  }
  return (events[index + 1]);
}