nextFrame method
Waits for the next frame to build.
Implementation
Future<void> nextFrame() {
final completer = Completer<void>();
SchedulerBinding.instance.addPostFrameCallback((_) => completer.complete());
return completer.future;
}
Waits for the next frame to build.
Future<void> nextFrame() {
final completer = Completer<void>();
SchedulerBinding.instance.addPostFrameCallback((_) => completer.complete());
return completer.future;
}