stupid tests created

This commit is contained in:
Kingkor Roy Tirtho
2022-06-13 11:35:35 +06:00
parent f0a7579ea2
commit 617d920464
4 changed files with 80 additions and 1 deletions
+1 -1
View File
@@ -211,7 +211,7 @@ class Query<T extends Object, Outside> extends ChangeNotifier {
///
/// Every time a new instance of data should be returned because of
/// immutability
update(FutureOr<T> Function(T? data) updateFn) async {
setQueryData(FutureOr<T> Function(T? data) updateFn) async {
final newData = await updateFn(data);
if (data == newData) {
// TODO: Better Error handling & Error structure