EFileModel.build constructor

EFileModel.build({
  1. required String base64Pdf,
  2. required String fileName,
  3. dynamic signPage = 1,
  4. dynamic signX = 0.0,
  5. dynamic signY = 0.0,
})

Implementation

factory EFileModel.build({
  required String base64Pdf,
  required String fileName,
  signPage = 1,
  signX = 0.0,
  signY = 0.0,
}) {
  final fileData = base64.decode(base64Pdf);
  return EFileModel._(
    name: fileName,
    base64pdf: base64Pdf,
    size: fileData.length,
    bytes: fileData,
    signPage: signPage,
    signX: signX,
    signY: signY,
  );
}