writeFromSync method

  1. @override
void writeFromSync(
  1. List<int> buffer, [
  2. int start = 0,
  3. int? end
])
override

Implementation

@override
void writeFromSync(List<int> buffer, [int start = 0, int? end]) {
  if (_file == null) {
    _open();
  }
  final int size;
  if (end == null) {
    size = buffer.length;
  } else {
    size = end - start;
  }
  _file!.writeFromSync(buffer, start, end);
  _position += size;
}