copyWith method

  1. @override
PmPacket copyWith({
  1. String? filename,
  2. String? contentType,
  3. Uint8List? data,
})
override

Implementation

@override
PmPacket copyWith({
  String? filename,
  String? contentType,
  Uint8List? data,
}) {
  return PmPacket(
    filename: filename ?? this.filename,
    contentType: contentType ?? this.contentType,
    data: data ?? this.data,
  );
}