write method

  1. @override
Future<void> write(
  1. LicenseDocument license
)
override

Implementation

@override
Future<void> write(LicenseDocument license) async {
  try {
    await File(lcpl).writeAsBytes(license.data.buffer.asUint8List());
  } on Exception catch (e, stacktrace) {
    Fimber.e("LcplLicenseContainer.write ERROR",
        ex: e, stacktrace: stacktrace);
    throw LcpException.container.writeFailed(lcpl);
  }
}