convert method

  1. @override
List<XmlEvent> convert(
  1. String input, [
  2. int start = 0,
  3. int? end
])
override

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;
}