add method

  1. @override
Future<OrderModel> add(
  1. OrderModel value
)
override

Add a OrderModel to the repository, cached

Implementation

@override
Future<OrderModel> add(OrderModel value) {
  return reference.add(value).then((newValue) {
    fullCache[value.documentID] = newValue;
    return newValue;
  });
}