copyWith method

PathWrapper<Path> copyWith({
  1. int? assetCount,
  2. Uint8List? thumbnailData,
})

Creates a modified copy of the object.

Explicitly specified fields get the specified value, all other fields get the same value of the current object.

Implementation

PathWrapper<Path> copyWith({
  int? assetCount,
  typed_data.Uint8List? thumbnailData,
}) {
  return PathWrapper<Path>(
    path: path,
    assetCount: assetCount ?? this.assetCount,
    thumbnailData: thumbnailData ?? this.thumbnailData,
  );
}