save method
save API.
Implementation
Uint8List save() {
final String title = subject.isEmpty ? labels.document : subject;
return TemplateDocument.save(
title: title,
author: owner.name,
direction: direction,
theme: theme,
font: font,
fontBold: fontBold,
footer: footer.isEmpty ? owner.name : footer,
pageFormat: landscape ? theme.pageFormat.landscape : null,
build: _build,
);
}