prepare method

  1. @override
void prepare()

Prepare the object to be written to the stream

Implementation

@override
void prepare() {
  super.prepare();
  params['/SubType'] = const PdfName('/XML');
  params.data = Uint8List.fromList(utf8.encode(metadata.toString()));
}