Files
fcs/lib/domain/entities/cargo.dart

18 lines
298 B
Dart
Raw Normal View History

2020-06-25 16:19:23 +06:30
class Cargo {
String type;
int price;
int weight;
Cargo({this.type, this.price, this.weight});
2020-10-13 07:50:25 +06:30
@override
String toString() {
return type;
}
@override
bool operator ==(Object other) => other is Cargo && other.type == type;
@override
int get hashCode => type.hashCode;
2020-06-25 16:19:23 +06:30
}