Skip to content

Commit

Permalink
async update
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisMarotta committed Dec 12, 2022
1 parent e1d733b commit 04029a6
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 57 deletions.
53 changes: 8 additions & 45 deletions lib/util/async_store.freezed.dart
Expand Up @@ -106,22 +106,14 @@ class __$$AsyncStateInitialCopyWithImpl<T, $Res>

/// @nodoc
class _$AsyncStateInitial<T>
with DiagnosticableTreeMixin
implements AsyncStateInitial<T> {
class _$AsyncStateInitial<T> implements AsyncStateInitial<T> {
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) ||
Expand Down Expand Up @@ -249,9 +241,7 @@ class __$$AsyncStateDataCopyWithImpl<T, $Res>

/// @nodoc
class _$AsyncStateData<T>
with DiagnosticableTreeMixin
implements AsyncStateData<T> {
class _$AsyncStateData<T> implements AsyncStateData<T> {
const _$AsyncStateData(this.data, [this.errorTerm]);

@override
Expand All @@ -260,19 +250,10 @@ class _$AsyncStateData<T>
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) ||
Expand Down Expand Up @@ -400,22 +381,14 @@ class __$$AsyncStateLoadingCopyWithImpl<T, $Res>

/// @nodoc
class _$AsyncStateLoading<T>
with DiagnosticableTreeMixin
implements AsyncStateLoading<T> {
class _$AsyncStateLoading<T> implements AsyncStateLoading<T> {
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) ||
Expand Down Expand Up @@ -538,27 +511,17 @@ class __$$AsyncStateErrorCopyWithImpl<T, $Res>

/// @nodoc
class _$AsyncStateError<T>
with DiagnosticableTreeMixin
implements AsyncStateError<T> {
class _$AsyncStateError<T> implements AsyncStateError<T> {
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) ||
Expand Down
24 changes: 12 additions & 12 deletions pubspec.lock
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand All @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand All @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 04029a6

Please sign in to comment.