prepare method
Prepare the object to be written to the stream
Implementation
@override
void prepare() {
super.prepare();
params[PdfNameTokens.functiontype] = const PdfNum(3);
params[PdfNameTokens.functions] = PdfArray.fromObjects(functions);
params[PdfNameTokens.order] = const PdfNum(3);
params[PdfNameTokens.domain] = PdfArray.fromNum(<num>[domainStart, domainEnd]);
params[PdfNameTokens.bounds] = PdfArray.fromNum(bounds);
params[PdfNameTokens.encode] = PdfArray.fromNum(
List<int>.generate(functions.length * 2, (int i) => i % 2));
}