create method

void create({
  1. required UDormCreateParams p,
})

Implementation

void create({required UDormCreateParams p}) => UServices.hotel.createDorm(
  p: p,
  onOk: (UResponse<String> r) => okCallback(r.message, read),
  onError: (UEmptyResponse r) => errorCallBack(r.message, read),
  onException: (String e) => errorCallBack(U.s.errorSubmittingForm, read),
);