BaseFileContent.from constructor

BaseFileContent.from(
  1. String? msgType,
  2. TransportableData? data,
  3. String? filename,
  4. Uri? url,
  5. DecryptKey? password,
)

Implementation

BaseFileContent.from(String? msgType, TransportableData? data, String? filename,
    Uri? url, DecryptKey? password)
    : super.fromType(msgType ?? ContentType.FILE) {
  _wrapper = TransportableFileWrapper.create(super.toMap(),
    data: data, filename: filename, url: url, password: password,
  );
}