fromBytes static method

Future<DocxTemplate> fromBytes(
  1. List<int> bytes
)

Load Template from byte buffer of docx file

Implementation

static Future<DocxTemplate> fromBytes(List<int> bytes) async {
  final component = DocxTemplate._();
  final arch = ZipDecoder().decodeBytes(bytes, verify: true);

  component._manager = DocxManager(arch);

  return component;
}