update<R> method
Implementation
@override
Future<Response<T>> update<R>(
String id,
Map<String, dynamic> data, {
R? Function(R parent)? source,
}) async {
final response = Response<T>();
try {
await _source(source).child(id).update(data);
return response.copy(isSuccessful: true);
} catch (_) {
return response.copy(error: _.toString());
}
}