update method
Implementation
Future<void> update(dynamic uniqueID, [T? model]) async {
try {
_startLoading();
var res = await fetcher.update<T>('$route/$uniqueID', model ?? data);
_handleAfterUpdate(res, model);
_succeedLoading();
} catch (e) {
_failLoading();
_logError(e, 'update method');
if (options.throwErrors) rethrow;
} finally {
notifyListeners();
}
}