OrderDetail constructor

OrderDetail({
  1. required int id,
  2. required String project,
  3. required OrderState state,
  4. double? price,
  5. required String? priceCurrency,
  6. required DateTime created,
  7. required DateTime modified,
  8. List<OrderModel> models = const [],
  9. List<OrderComment> comments = const [],
})

Returns a new OrderDetail instance.

Implementation

OrderDetail({
  required this.id,
  required this.project,
  required this.state,
  this.price,
  required this.priceCurrency,
  required this.created,
  required this.modified,
  this.models = const [],
  this.comments = const [],
});