nextBuffer property

Buffer get nextBuffer

The buffer for the next frame, created lazily and invalidated after each render call.

Implementation

Buffer get nextBuffer {
  _checkNotDisposed();
  if (_nextBuffer == null) {
    final native = _bindings.getNextBuffer(_handle);
    _clearNativeDrawStacks(native);
    _nextBuffer = createBufferFromNative(
      native,
      _bindings,
      () => _disposed,
      materializeImagesAsBlocks: _testing,
    );
  }
  return _nextBuffer!;
}