convert method Null safety

  1. @override
  2. @nonVirtual
List<XmlNode> convert(
  1. List<XmlEvent> input
)
@nonVirtual, inherited

Converts input and returns the result of the conversion.

Implementation

@override
@nonVirtual
List<T> convert(List<S> input) {
  final list = <T>[];
  final sink = ConversionSink<List<T>>(list.addAll);
  startChunkedConversion(sink)
    ..add(input)
    ..close();
  return list;
}