createBufferGenerator method Null safety

BufferGenerator createBufferGenerator(
  1. {Buffer? buffer}
)

Create a buffer generator.

Implementation

BufferGenerator createBufferGenerator({final Buffer? buffer}) =>
    BufferGenerator(this, buffer: buffer);