copyWith method
Implementation
Item copyWith({
String? name,
int? pricePerUnit,
int? quantity,
int? weight,
int? height,
int? width,
int? length,
}) =>
Item(
name: name ?? this.name,
pricePerUnit: pricePerUnit ?? this.pricePerUnit,
quantity: quantity ?? this.quantity,
weight: weight ?? this.weight,
height: height ?? this.height,
width: width ?? this.width,
length: length ?? this.length,
);