flushed static method

Future<void> flushed()

Internal: ends when the work of the current request has run. Done at once when there was no work.

Implementation

static Future<void> flushed() {
  Object? pending = Zone.current[_key];
  return (pending is _Pending ? pending._flushed : null) ??
      Future<void>.value();
}