update method
- ChildData data, {
- 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();
}