Files
fcs/lib/domain/entities/cargo.dart
2020-10-13 07:50:25 +06:30

18 lines
298 B
Dart

class Cargo {
String type;
int price;
int weight;
Cargo({this.type, this.price, this.weight});
@override
String toString() {
return type;
}
@override
bool operator ==(Object other) => other is Cargo && other.type == type;
@override
int get hashCode => type.hashCode;
}