We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aebe1bb commit f63369dCopy full SHA for f63369d
lib/src/adapter/remote_adapter.dart
@@ -94,7 +94,7 @@ mixin _RemoteAdapter<T extends DataModelMixin<T>> on _SerializationAdapter<T> {
94
onError: (e, label) async {
95
onError ??= (e, label, _) async {
96
final result = await this.onError<List<T>>(e, label);
97
- return result as List<T>;
+ return result ?? [];
98
};
99
return onError!.call(e, label, this as Adapter<T>);
100
},
0 commit comments