21 lines
437 B
Dart
21 lines
437 B
Dart
import 'package:meta/meta.dart';
|
|
import 'package:satu/core/models/auth/auth_response.dart';
|
|
import 'package:satu/core/models/flow/product_dao.dart';
|
|
|
|
@immutable
|
|
class SellState {
|
|
final List<ProductDao> items;
|
|
|
|
SellState({
|
|
this.items,
|
|
});
|
|
|
|
factory SellState.initial() => SellState(
|
|
items: [],
|
|
);
|
|
|
|
SellState copyWith({@required List<ProductDao> items}) {
|
|
return SellState(items: items ?? this.items);
|
|
}
|
|
}
|