Final commit.
This commit is contained in:
32
lib/domain/entity/warehouse.dart
Normal file
32
lib/domain/entity/warehouse.dart
Normal file
@ -0,0 +1,32 @@
|
||||
/// Lager-Standort, von dem ein `DeliveryItem` geladen wird.
|
||||
///
|
||||
/// `isStandard` markiert das Hauptlager — die App nutzt das, um in der
|
||||
/// Loading-Übersicht ein „Sonderlager"-Banner zu zeigen, sobald Items aus
|
||||
/// einem nicht-Standard-Lager kommen.
|
||||
class Warehouse {
|
||||
const Warehouse({
|
||||
required this.id,
|
||||
required this.name,
|
||||
required this.code,
|
||||
required this.isStandard,
|
||||
});
|
||||
|
||||
final String id;
|
||||
final String name;
|
||||
final String code;
|
||||
final bool isStandard;
|
||||
|
||||
Warehouse copyWith({
|
||||
String? id,
|
||||
String? name,
|
||||
String? code,
|
||||
bool? isStandard,
|
||||
}) {
|
||||
return Warehouse(
|
||||
id: id ?? this.id,
|
||||
name: name ?? this.name,
|
||||
code: code ?? this.code,
|
||||
isStandard: isStandard ?? this.isStandard,
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user