update method

  1. @override
Future<T?> update(
  1. Map<String, dynamic> data, {
  2. String? id,
  3. bool notifiable = true,
})
override

Implementation

@override
Future<T?> update(
  Map<String, dynamic> data, {
  String? id,
  bool notifiable = true,
}) async {
  try {
    await backupHandler.update(data);
    final updated = await auth;
    if (notifiable) _emitUser(updated);
    return updated;
  } catch (error) {
    _errorNotifier.value = error.toString();
    return null;
  }
}