From 31c4a4ad3b4cd2714077d42163d656c517bc7b7c Mon Sep 17 00:00:00 2001 From: Thomas Abot Date: Fri, 11 Jun 2021 10:02:14 +0200 Subject: [PATCH 1/2] Update dependencies --- example/pubspec.lock | 12 ++--- pubspec.lock | 106 +++++++++++++++++++++---------------------- pubspec.yaml | 8 ++-- 3 files changed, 63 insertions(+), 63 deletions(-) diff --git a/example/pubspec.lock b/example/pubspec.lock index e3442c1..b26fb74 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -7,7 +7,7 @@ packages: name: async url: "https://pub.dartlang.org" source: hosted - version: "2.5.0" + version: "2.6.1" boolean_selector: dependency: transitive description: @@ -73,21 +73,21 @@ packages: name: freezed_annotation url: "https://pub.dartlang.org" source: hosted - version: "0.13.0-nullsafety.0" + version: "0.14.2" gap: dependency: transitive description: name: gap url: "https://pub.dartlang.org" source: hosted - version: "2.0.0-nullsafety.1" + version: "2.0.0" json_annotation: dependency: transitive description: name: json_annotation url: "https://pub.dartlang.org" source: hosted - version: "4.0.0" + version: "4.0.1" matcher: dependency: transitive description: @@ -120,7 +120,7 @@ packages: name: source_span url: "https://pub.dartlang.org" source: hosted - version: "1.8.0" + version: "1.8.1" spaces: dependency: "direct main" description: @@ -162,7 +162,7 @@ packages: name: test_api url: "https://pub.dartlang.org" source: hosted - version: "0.2.19" + version: "0.3.0" typed_data: dependency: transitive description: diff --git a/pubspec.lock b/pubspec.lock index 7ed7f46..b7106dc 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -7,28 +7,28 @@ packages: name: _fe_analyzer_shared url: "https://pub.dartlang.org" source: hosted - version: "14.0.0" + version: "22.0.0" analyzer: dependency: transitive description: name: analyzer url: "https://pub.dartlang.org" source: hosted - version: "0.41.2" + version: "1.7.1" args: dependency: transitive description: name: args url: "https://pub.dartlang.org" source: hosted - version: "1.6.0" + version: "2.1.1" async: dependency: transitive description: name: async url: "https://pub.dartlang.org" source: hosted - version: "2.5.0" + version: "2.6.1" boolean_selector: dependency: transitive description: @@ -42,56 +42,56 @@ packages: name: build url: "https://pub.dartlang.org" source: hosted - version: "1.6.2" + version: "2.0.2" build_config: dependency: transitive description: name: build_config url: "https://pub.dartlang.org" source: hosted - version: "0.4.5" + version: "1.0.0" build_daemon: dependency: transitive description: name: build_daemon url: "https://pub.dartlang.org" source: hosted - version: "2.1.4" + version: "3.0.0" build_resolvers: dependency: transitive description: name: build_resolvers url: "https://pub.dartlang.org" source: hosted - version: "1.5.3" + version: "2.0.3" build_runner: dependency: "direct dev" description: name: build_runner url: "https://pub.dartlang.org" source: hosted - version: "1.11.5" + version: "2.0.4" build_runner_core: dependency: transitive description: name: build_runner_core url: "https://pub.dartlang.org" source: hosted - version: "6.1.10" + version: "7.0.0" built_collection: dependency: transitive description: name: built_collection url: "https://pub.dartlang.org" source: hosted - version: "4.3.2" + version: "5.0.0" built_value: dependency: transitive description: name: built_value url: "https://pub.dartlang.org" source: hosted - version: "7.1.0" + version: "8.0.6" characters: dependency: transitive description: @@ -112,14 +112,14 @@ packages: name: checked_yaml url: "https://pub.dartlang.org" source: hosted - version: "1.0.4" + version: "2.0.1" cli_util: dependency: transitive description: name: cli_util url: "https://pub.dartlang.org" source: hosted - version: "0.1.4" + version: "0.3.0" clock: dependency: transitive description: @@ -133,7 +133,7 @@ packages: name: code_builder url: "https://pub.dartlang.org" source: hosted - version: "3.4.1" + version: "4.0.0" collection: dependency: transitive description: @@ -147,21 +147,21 @@ packages: name: convert url: "https://pub.dartlang.org" source: hosted - version: "2.1.1" + version: "3.0.0" crypto: dependency: transitive description: name: crypto url: "https://pub.dartlang.org" source: hosted - version: "2.1.5" + version: "3.0.1" dart_style: dependency: transitive description: name: dart_style url: "https://pub.dartlang.org" source: hosted - version: "1.3.12" + version: "2.0.1" fake_async: dependency: transitive description: @@ -175,14 +175,14 @@ packages: name: file url: "https://pub.dartlang.org" source: hosted - version: "6.1.0" + version: "6.1.1" fixnum: dependency: transitive description: name: fixnum url: "https://pub.dartlang.org" source: hosted - version: "0.10.11" + version: "1.0.0" flutter: dependency: "direct main" description: flutter @@ -199,77 +199,84 @@ packages: name: freezed url: "https://pub.dartlang.org" source: hosted - version: "0.14.0-nullsafety.0" + version: "0.14.2" freezed_annotation: dependency: "direct main" description: name: freezed_annotation url: "https://pub.dartlang.org" source: hosted - version: "0.13.0-nullsafety.0" + version: "0.14.2" + frontend_server_client: + dependency: transitive + description: + name: frontend_server_client + url: "https://pub.dartlang.org" + source: hosted + version: "2.1.0" gap: dependency: "direct main" description: name: gap url: "https://pub.dartlang.org" source: hosted - version: "2.0.0-nullsafety.1" + version: "2.0.0" glob: dependency: transitive description: name: glob url: "https://pub.dartlang.org" source: hosted - version: "2.0.0" + version: "2.0.1" graphs: dependency: transitive description: name: graphs url: "https://pub.dartlang.org" source: hosted - version: "0.2.0" + version: "2.0.0" http_multi_server: dependency: transitive description: name: http_multi_server url: "https://pub.dartlang.org" source: hosted - version: "2.2.0" + version: "3.0.1" http_parser: dependency: transitive description: name: http_parser url: "https://pub.dartlang.org" source: hosted - version: "3.1.4" + version: "4.0.0" io: dependency: transitive description: name: io url: "https://pub.dartlang.org" source: hosted - version: "0.3.4" + version: "1.0.0" js: dependency: transitive description: name: js url: "https://pub.dartlang.org" source: hosted - version: "0.6.2" + version: "0.6.3" json_annotation: dependency: transitive description: name: json_annotation url: "https://pub.dartlang.org" source: hosted - version: "4.0.0" + version: "4.0.1" logging: dependency: transitive description: name: logging url: "https://pub.dartlang.org" source: hosted - version: "0.11.4" + version: "1.0.1" matcher: dependency: transitive description: @@ -290,14 +297,14 @@ packages: name: mime url: "https://pub.dartlang.org" source: hosted - version: "0.9.7" + version: "1.0.0" package_config: dependency: transitive description: name: package_config url: "https://pub.dartlang.org" source: hosted - version: "1.9.3" + version: "2.0.0" path: dependency: transitive description: @@ -318,42 +325,35 @@ packages: name: pool url: "https://pub.dartlang.org" source: hosted - version: "1.4.0" + version: "1.5.0" pub_semver: dependency: transitive description: name: pub_semver url: "https://pub.dartlang.org" source: hosted - version: "1.4.4" + version: "2.0.0" pubspec_parse: dependency: transitive description: name: pubspec_parse url: "https://pub.dartlang.org" source: hosted - version: "0.1.8" - quiver: - dependency: transitive - description: - name: quiver - url: "https://pub.dartlang.org" - source: hosted - version: "2.1.3" + version: "1.0.0" shelf: dependency: transitive description: name: shelf url: "https://pub.dartlang.org" source: hosted - version: "0.7.9" + version: "1.1.4" shelf_web_socket: dependency: transitive description: name: shelf_web_socket url: "https://pub.dartlang.org" source: hosted - version: "0.2.3" + version: "1.0.1" sky_engine: dependency: transitive description: flutter @@ -365,14 +365,14 @@ packages: name: source_gen url: "https://pub.dartlang.org" source: hosted - version: "0.9.10+3" + version: "1.0.2" source_span: dependency: transitive description: name: source_span url: "https://pub.dartlang.org" source: hosted - version: "1.8.0" + version: "1.8.1" stack_trace: dependency: transitive description: @@ -393,7 +393,7 @@ packages: name: stream_transform url: "https://pub.dartlang.org" source: hosted - version: "1.2.0" + version: "2.0.0" string_scanner: dependency: transitive description: @@ -414,14 +414,14 @@ packages: name: test_api url: "https://pub.dartlang.org" source: hosted - version: "0.2.19" + version: "0.3.0" timing: dependency: transitive description: name: timing url: "https://pub.dartlang.org" source: hosted - version: "0.1.1+3" + version: "1.0.0" typed_data: dependency: transitive description: @@ -442,21 +442,21 @@ packages: name: watcher url: "https://pub.dartlang.org" source: hosted - version: "0.9.7+15" + version: "1.0.0" web_socket_channel: dependency: transitive description: name: web_socket_channel url: "https://pub.dartlang.org" source: hosted - version: "1.1.0" + version: "2.1.0" yaml: dependency: transitive description: name: yaml url: "https://pub.dartlang.org" source: hosted - version: "2.2.1" + version: "3.1.0" sdks: dart: ">=2.12.0 <3.0.0" flutter: ">=2.0.0" diff --git a/pubspec.yaml b/pubspec.yaml index cda9869..e0c0a6f 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -8,14 +8,14 @@ environment: flutter: ">=2.0.0 <3.0.0" dependencies: - gap: ^2.0.0-nullsafety.1 + gap: ^2.0.0 flutter: sdk: flutter - freezed_annotation: ^0.13.0-nullsafety.0 + freezed_annotation: ^0.14.2 dev_dependencies: - freezed: ^0.14.0-nullsafety.0 - build_runner: ^1.11.5 + freezed: ^0.14.2 + build_runner: ^2.0.4 flutter_test: sdk: flutter From b6a1387abaafd36e94e9290806a00a53ca89683f Mon Sep 17 00:00:00 2001 From: Thomas Abot Date: Fri, 11 Jun 2021 10:30:44 +0200 Subject: [PATCH 2/2] Updated freezed generated source code --- lib/src/spacing_data.freezed.dart | 169 ++++++++++++++++++++++-------- 1 file changed, 127 insertions(+), 42 deletions(-) diff --git a/lib/src/spacing_data.freezed.dart b/lib/src/spacing_data.freezed.dart index 4ea7208..1b717ed 100644 --- a/lib/src/spacing_data.freezed.dart +++ b/lib/src/spacing_data.freezed.dart @@ -63,8 +63,14 @@ class _$SpacingDataCopyWithImpl<$Res> implements $SpacingDataCopyWith<$Res> { Object? spaces = freezed, }) { return _then(_value.copyWith( - insets: insets == freezed ? _value.insets : insets as SpacingInsetsData, - spaces: spaces == freezed ? _value.spaces : spaces as SizeSet, + insets: insets == freezed + ? _value.insets + : insets // ignore: cast_nullable_to_non_nullable + as SpacingInsetsData, + spaces: spaces == freezed + ? _value.spaces + : spaces // ignore: cast_nullable_to_non_nullable + as SizeSet, )); } @@ -114,13 +120,20 @@ class __$SpacingDataCopyWithImpl<$Res> extends _$SpacingDataCopyWithImpl<$Res> Object? spaces = freezed, }) { return _then(_SpacingData( - insets: insets == freezed ? _value.insets : insets as SpacingInsetsData, - spaces: spaces == freezed ? _value.spaces : spaces as SizeSet, + insets: insets == freezed + ? _value.insets + : insets // ignore: cast_nullable_to_non_nullable + as SpacingInsetsData, + spaces: spaces == freezed + ? _value.spaces + : spaces // ignore: cast_nullable_to_non_nullable + as SizeSet, )); } } /// @nodoc + class _$_SpacingData implements _SpacingData { const _$_SpacingData({required this.insets, required this.spaces}); @@ -280,36 +293,50 @@ class _$SpacingInsetsDataCopyWithImpl<$Res> Object? exceptBottom = freezed, }) { return _then(_value.copyWith( - all: all == freezed ? _value.all : all as SizeSet, + all: all == freezed + ? _value.all + : all // ignore: cast_nullable_to_non_nullable + as SizeSet, horizontal: horizontal == freezed ? _value.horizontal - : horizontal as SizeSet, + : horizontal // ignore: cast_nullable_to_non_nullable + as SizeSet, vertical: vertical == freezed ? _value.vertical - : vertical as SizeSet, + : vertical // ignore: cast_nullable_to_non_nullable + as SizeSet, onlyRight: onlyRight == freezed ? _value.onlyRight - : onlyRight as SizeSet, - onlyTop: - onlyTop == freezed ? _value.onlyTop : onlyTop as SizeSet, + : onlyRight // ignore: cast_nullable_to_non_nullable + as SizeSet, + onlyTop: onlyTop == freezed + ? _value.onlyTop + : onlyTop // ignore: cast_nullable_to_non_nullable + as SizeSet, onlyBottom: onlyBottom == freezed ? _value.onlyBottom - : onlyBottom as SizeSet, + : onlyBottom // ignore: cast_nullable_to_non_nullable + as SizeSet, onlyLeft: onlyLeft == freezed ? _value.onlyLeft - : onlyLeft as SizeSet, + : onlyLeft // ignore: cast_nullable_to_non_nullable + as SizeSet, exceptLeft: exceptLeft == freezed ? _value.exceptLeft - : exceptLeft as SizeSet, + : exceptLeft // ignore: cast_nullable_to_non_nullable + as SizeSet, exceptRight: exceptRight == freezed ? _value.exceptRight - : exceptRight as SizeSet, + : exceptRight // ignore: cast_nullable_to_non_nullable + as SizeSet, exceptTop: exceptTop == freezed ? _value.exceptTop - : exceptTop as SizeSet, + : exceptTop // ignore: cast_nullable_to_non_nullable + as SizeSet, exceptBottom: exceptBottom == freezed ? _value.exceptBottom - : exceptBottom as SizeSet, + : exceptBottom // ignore: cast_nullable_to_non_nullable + as SizeSet, )); } @@ -461,41 +488,56 @@ class __$SpacingInsetsDataCopyWithImpl<$Res> Object? exceptBottom = freezed, }) { return _then(_SpacingInsetsData( - all: all == freezed ? _value.all : all as SizeSet, + all: all == freezed + ? _value.all + : all // ignore: cast_nullable_to_non_nullable + as SizeSet, horizontal: horizontal == freezed ? _value.horizontal - : horizontal as SizeSet, + : horizontal // ignore: cast_nullable_to_non_nullable + as SizeSet, vertical: vertical == freezed ? _value.vertical - : vertical as SizeSet, + : vertical // ignore: cast_nullable_to_non_nullable + as SizeSet, onlyRight: onlyRight == freezed ? _value.onlyRight - : onlyRight as SizeSet, - onlyTop: - onlyTop == freezed ? _value.onlyTop : onlyTop as SizeSet, + : onlyRight // ignore: cast_nullable_to_non_nullable + as SizeSet, + onlyTop: onlyTop == freezed + ? _value.onlyTop + : onlyTop // ignore: cast_nullable_to_non_nullable + as SizeSet, onlyBottom: onlyBottom == freezed ? _value.onlyBottom - : onlyBottom as SizeSet, + : onlyBottom // ignore: cast_nullable_to_non_nullable + as SizeSet, onlyLeft: onlyLeft == freezed ? _value.onlyLeft - : onlyLeft as SizeSet, + : onlyLeft // ignore: cast_nullable_to_non_nullable + as SizeSet, exceptLeft: exceptLeft == freezed ? _value.exceptLeft - : exceptLeft as SizeSet, + : exceptLeft // ignore: cast_nullable_to_non_nullable + as SizeSet, exceptRight: exceptRight == freezed ? _value.exceptRight - : exceptRight as SizeSet, + : exceptRight // ignore: cast_nullable_to_non_nullable + as SizeSet, exceptTop: exceptTop == freezed ? _value.exceptTop - : exceptTop as SizeSet, + : exceptTop // ignore: cast_nullable_to_non_nullable + as SizeSet, exceptBottom: exceptBottom == freezed ? _value.exceptBottom - : exceptBottom as SizeSet, + : exceptBottom // ignore: cast_nullable_to_non_nullable + as SizeSet, )); } } /// @nodoc + class _$_SpacingInsetsData implements _SpacingInsetsData { const _$_SpacingInsetsData( {required this.all, @@ -714,13 +756,34 @@ class _$SizeSetCopyWithImpl implements $SizeSetCopyWith { Object? extraBig = freezed, }) { return _then(_value.copyWith( - extraSmall: extraSmall == freezed ? _value.extraSmall : extraSmall as T, - small: small == freezed ? _value.small : small as T, - semiSmall: semiSmall == freezed ? _value.semiSmall : semiSmall as T, - normal: normal == freezed ? _value.normal : normal as T, - semiBig: semiBig == freezed ? _value.semiBig : semiBig as T, - big: big == freezed ? _value.big : big as T, - extraBig: extraBig == freezed ? _value.extraBig : extraBig as T, + extraSmall: extraSmall == freezed + ? _value.extraSmall + : extraSmall // ignore: cast_nullable_to_non_nullable + as T, + small: small == freezed + ? _value.small + : small // ignore: cast_nullable_to_non_nullable + as T, + semiSmall: semiSmall == freezed + ? _value.semiSmall + : semiSmall // ignore: cast_nullable_to_non_nullable + as T, + normal: normal == freezed + ? _value.normal + : normal // ignore: cast_nullable_to_non_nullable + as T, + semiBig: semiBig == freezed + ? _value.semiBig + : semiBig // ignore: cast_nullable_to_non_nullable + as T, + big: big == freezed + ? _value.big + : big // ignore: cast_nullable_to_non_nullable + as T, + extraBig: extraBig == freezed + ? _value.extraBig + : extraBig // ignore: cast_nullable_to_non_nullable + as T, )); } } @@ -761,18 +824,40 @@ class __$SizeSetCopyWithImpl extends _$SizeSetCopyWithImpl Object? extraBig = freezed, }) { return _then(_SizeSet( - extraSmall: extraSmall == freezed ? _value.extraSmall : extraSmall as T, - small: small == freezed ? _value.small : small as T, - semiSmall: semiSmall == freezed ? _value.semiSmall : semiSmall as T, - normal: normal == freezed ? _value.normal : normal as T, - semiBig: semiBig == freezed ? _value.semiBig : semiBig as T, - big: big == freezed ? _value.big : big as T, - extraBig: extraBig == freezed ? _value.extraBig : extraBig as T, + extraSmall: extraSmall == freezed + ? _value.extraSmall + : extraSmall // ignore: cast_nullable_to_non_nullable + as T, + small: small == freezed + ? _value.small + : small // ignore: cast_nullable_to_non_nullable + as T, + semiSmall: semiSmall == freezed + ? _value.semiSmall + : semiSmall // ignore: cast_nullable_to_non_nullable + as T, + normal: normal == freezed + ? _value.normal + : normal // ignore: cast_nullable_to_non_nullable + as T, + semiBig: semiBig == freezed + ? _value.semiBig + : semiBig // ignore: cast_nullable_to_non_nullable + as T, + big: big == freezed + ? _value.big + : big // ignore: cast_nullable_to_non_nullable + as T, + extraBig: extraBig == freezed + ? _value.extraBig + : extraBig // ignore: cast_nullable_to_non_nullable + as T, )); } } /// @nodoc + class _$_SizeSet implements _SizeSet { const _$_SizeSet( {required this.extraSmall,