update method

void update(
  1. ChildData data, {
  2. String? langText,
})

Implementation

void update(ChildData data, {String? langText}) async {
  if (langText != null) data.langText = langText;
  _maybeShowToast(await API().update(data, caller: currentData) ??
      S.current!.didntGetAnyResponseAfterSend);
  notifyListeners();
}