bufferClear method
Clears buffer to background.
Implementation
void bufferClear(OptimizedBufferHandle buffer, Color background) {
validateColorChannels(background, name: 'background');
_guardAlloc('Failed to clear buffer', (allocator) {
_native.bufferClear(buffer.value, _colorToNative(background, allocator));
});
}