update method
Implementation
Future<T?> update(
Map<String, dynamic> data, {
String? id,
bool notifiable = true,
bool lazyRemoteUpdate = true,
}) async {
if (data.isEmpty) return _userNotifier.value;
try {
final ok = await _backup.update(data, lazyRemoteUpdate);
if (!ok) return null;
return _userNotifier.value;
} catch (error) {
if (!_disposed && notifiable) _errorNotifier.value = error.toString();
return null;
}
}