convert method
Converts input
and returns the result of the conversion.
Implementation
@override
List<XmlEvent> convert(String input, [int start = 0, int? end]) {
end = RangeError.checkValidRange(start, end, input.length);
final list = <XmlEvent>[];
final sink = ConversionSink<List<XmlEvent>>(list.addAll);
startChunkedConversion(sink)
..add(input)
..close();
return list;
}