Flush method

Future<void> Flush()

Implementation

Future<void> Flush() async {
  final xml = builder.build().toString();
  List<int> data = utf8.encode(xml);
  await _output!.addStream(Stream.fromIterable([data]));
}