create method

Future<AppResponse<String>> create(
  1. Customer customer
)
override

Implementation

Future<AppResponse<String>> create(Customer customer) async {
  String id = idHelper.generateId();
  _list.add(customer.copyWith(id: id));
  return AppResponse.named(data: id);
}