flush method Null safety
override
Implementation
@override
void flush() {
if (_bufferPosition > 0) {
if (_isOpen) {
_fp.writeFromSync(_buffer, 0, _bufferPosition);
}
_bufferPosition = 0;
}
}
@override
void flush() {
if (_bufferPosition > 0) {
if (_isOpen) {
_fp.writeFromSync(_buffer, 0, _bufferPosition);
}
_bufferPosition = 0;
}
}