From 04029a651df0872f3b095f9531af06f76c0ab3e6 Mon Sep 17 00:00:00 2001 From: Louis Date: Mon, 12 Dec 2022 16:27:49 +0100 Subject: [PATCH] async update --- lib/util/async_store.freezed.dart | 53 +++++-------------------------- pubspec.lock | 24 +++++++------- 2 files changed, 20 insertions(+), 57 deletions(-) diff --git a/lib/util/async_store.freezed.dart b/lib/util/async_store.freezed.dart index 8f141bac..b7285d49 100644 --- a/lib/util/async_store.freezed.dart +++ b/lib/util/async_store.freezed.dart @@ -106,22 +106,14 @@ class __$$AsyncStateInitialCopyWithImpl /// @nodoc -class _$AsyncStateInitial - with DiagnosticableTreeMixin - implements AsyncStateInitial { +class _$AsyncStateInitial implements AsyncStateInitial { const _$AsyncStateInitial(); @override - String toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) { + String toString() { return 'AsyncState<$T>.initial()'; } - @override - void debugFillProperties(DiagnosticPropertiesBuilder properties) { - super.debugFillProperties(properties); - properties.add(DiagnosticsProperty('type', 'AsyncState<$T>.initial')); - } - @override bool operator ==(dynamic other) { return identical(this, other) || @@ -249,9 +241,7 @@ class __$$AsyncStateDataCopyWithImpl /// @nodoc -class _$AsyncStateData - with DiagnosticableTreeMixin - implements AsyncStateData { +class _$AsyncStateData implements AsyncStateData { const _$AsyncStateData(this.data, [this.errorTerm]); @override @@ -260,19 +250,10 @@ class _$AsyncStateData final String? errorTerm; @override - String toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) { + String toString() { return 'AsyncState<$T>.data(data: $data, errorTerm: $errorTerm)'; } - @override - void debugFillProperties(DiagnosticPropertiesBuilder properties) { - super.debugFillProperties(properties); - properties - ..add(DiagnosticsProperty('type', 'AsyncState<$T>.data')) - ..add(DiagnosticsProperty('data', data)) - ..add(DiagnosticsProperty('errorTerm', errorTerm)); - } - @override bool operator ==(dynamic other) { return identical(this, other) || @@ -400,22 +381,14 @@ class __$$AsyncStateLoadingCopyWithImpl /// @nodoc -class _$AsyncStateLoading - with DiagnosticableTreeMixin - implements AsyncStateLoading { +class _$AsyncStateLoading implements AsyncStateLoading { const _$AsyncStateLoading(); @override - String toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) { + String toString() { return 'AsyncState<$T>.loading()'; } - @override - void debugFillProperties(DiagnosticPropertiesBuilder properties) { - super.debugFillProperties(properties); - properties.add(DiagnosticsProperty('type', 'AsyncState<$T>.loading')); - } - @override bool operator ==(dynamic other) { return identical(this, other) || @@ -538,27 +511,17 @@ class __$$AsyncStateErrorCopyWithImpl /// @nodoc -class _$AsyncStateError - with DiagnosticableTreeMixin - implements AsyncStateError { +class _$AsyncStateError implements AsyncStateError { const _$AsyncStateError(this.errorTerm); @override final String errorTerm; @override - String toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) { + String toString() { return 'AsyncState<$T>.error(errorTerm: $errorTerm)'; } - @override - void debugFillProperties(DiagnosticPropertiesBuilder properties) { - super.debugFillProperties(properties); - properties - ..add(DiagnosticsProperty('type', 'AsyncState<$T>.error')) - ..add(DiagnosticsProperty('errorTerm', errorTerm)); - } - @override bool operator ==(dynamic other) { return identical(this, other) || diff --git a/pubspec.lock b/pubspec.lock index 22571acf..ea39856e 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -35,7 +35,7 @@ packages: name: async url: "https://pub.dartlang.org" source: hosted - version: "2.8.2" + version: "2.9.0" boolean_selector: dependency: transitive description: @@ -105,7 +105,7 @@ packages: name: characters url: "https://pub.dartlang.org" source: hosted - version: "1.2.0" + version: "1.2.1" charcode: dependency: transitive description: @@ -126,7 +126,7 @@ packages: name: clock url: "https://pub.dartlang.org" source: hosted - version: "1.1.0" + version: "1.1.1" code_builder: dependency: transitive description: @@ -189,7 +189,7 @@ packages: name: fake_async url: "https://pub.dartlang.org" source: hosted - version: "1.3.0" + version: "1.3.1" ffi: dependency: transitive description: @@ -496,14 +496,14 @@ packages: name: matcher url: "https://pub.dartlang.org" source: hosted - version: "0.12.11" + version: "0.12.12" material_color_utilities: dependency: transitive description: name: material_color_utilities url: "https://pub.dartlang.org" source: hosted - version: "0.1.4" + version: "0.1.5" matrix4_transform: dependency: "direct main" description: @@ -517,7 +517,7 @@ packages: name: meta url: "https://pub.dartlang.org" source: hosted - version: "1.7.0" + version: "1.8.0" mime: dependency: transitive description: @@ -608,7 +608,7 @@ packages: name: path url: "https://pub.dartlang.org" source: hosted - version: "1.8.1" + version: "1.8.2" path_provider: dependency: transitive description: @@ -858,7 +858,7 @@ packages: name: source_span url: "https://pub.dartlang.org" source: hosted - version: "1.8.2" + version: "1.9.0" stack_trace: dependency: transitive description: @@ -886,21 +886,21 @@ packages: name: string_scanner url: "https://pub.dartlang.org" source: hosted - version: "1.1.0" + version: "1.1.1" term_glyph: dependency: transitive description: name: term_glyph url: "https://pub.dartlang.org" source: hosted - version: "1.2.0" + version: "1.2.1" test_api: dependency: transitive description: name: test_api url: "https://pub.dartlang.org" source: hosted - version: "0.4.9" + version: "0.4.12" timeago: dependency: "direct main" description: