pump method

Future<void> pump([
  1. Duration? duration
])

Implementation

Future<void> pump([Duration? duration]) async {
  if (_rootElement != null) {
    _build(_rootElement!);
    _layout(_rootElement!);
    outputBuffer.smartClear();
    paintElement(_rootElement!);
  }
  if (duration != null) {
    await Future<void>.delayed(duration);
  }
}