copyWith method

FileBytes copyWith({
  1. String? path,
  2. Uint8List? bytes,
})

Returns a new instance by overriding the values passed as arguments

Implementation

FileBytes copyWith({
  String? path,
  Uint8List? bytes,
}) =>
    FileBytes(path: path ?? this.path, bytes: bytes ?? this.bytes);