updateCurrentChild<T> method
- Future<
T> updater(- ChildData
Implementation
Future<T?> updateCurrentChild<T>(
Future<T> Function(ChildData) updater) async {
ChildData? childD = await currentlyChosenChildData;
if (childD != null) {
T ret = await updater(childD);
notifyListeners();
// await Future.delayed(Duration(milliseconds: 3000));
// notifyListeners();
return ret;
}
return null;
}