diff --git a/packages/neon/neon/lib/src/utils/result.dart b/packages/neon/neon/lib/src/utils/result.dart index 73ef6d61..3a11a9ee 100644 --- a/packages/neon/neon/lib/src/utils/result.dart +++ b/packages/neon/neon/lib/src/utils/result.dart @@ -1,14 +1,15 @@ part of '../../neon.dart'; +@immutable class Result { - Result( + const Result( this.data, this.error, { required this.loading, required this.cached, }); - factory Result.loading() => Result( + factory Result.loading() => const Result( null, null, loading: true,