endOfFrame property

  1. @override
Future<void> endOfFrame
override

Returns a Future that completes after the frame completes.

If this is called between frames, a frame is immediately scheduled if necessary. If this is called during a frame, the Future completes after the current frame.

If the device's screen is currently turned off, this may wait a very long time, since frames are not scheduled while the device's screen is turned off.

Implementation

@override
Future<void> get endOfFrame => throw UnimplementedError();