blob: 83202e4c91d9853a01da0ef91465d3672e194442 [file] [log] [blame]
import 'package:meta/meta.dart';
/// Mixin with information about the location.
mixin XmlHasBuffer {
/// Hold a reference to the start in the input buffer.
String? _buffer;
/// Return the underlying buffer.
String? get buffer => _buffer;
/// Internal helper to attach the buffer to the event, do not call directly.
@internal
void attachBuffer(String? buffer) {
assert(_buffer == null, 'Buffer is already initialized.');
_buffer = buffer;
}
}