diff --git a/packages/stac/lib/src/parsers/stac_color_scheme/stac_color_scheme.dart b/packages/stac/lib/src/parsers/stac_color_scheme/stac_color_scheme.dart index f7c879a7..1a037917 100644 --- a/packages/stac/lib/src/parsers/stac_color_scheme/stac_color_scheme.dart +++ b/packages/stac/lib/src/parsers/stac_color_scheme/stac_color_scheme.dart @@ -25,8 +25,8 @@ abstract class StacColorScheme with _$StacColorScheme { required String onError, String? errorContainer, String? onErrorContainer, - required String background, - required String onBackground, + String? background, + String? onBackground, required String surface, required String onSurface, String? surfaceVariant, diff --git a/packages/stac/lib/src/parsers/stac_color_scheme/stac_color_scheme.freezed.dart b/packages/stac/lib/src/parsers/stac_color_scheme/stac_color_scheme.freezed.dart index 1e734fb0..a46cbc9b 100644 --- a/packages/stac/lib/src/parsers/stac_color_scheme/stac_color_scheme.freezed.dart +++ b/packages/stac/lib/src/parsers/stac_color_scheme/stac_color_scheme.freezed.dart @@ -32,8 +32,8 @@ mixin _$StacColorScheme { String get onError; String? get errorContainer; String? get onErrorContainer; - String get background; - String get onBackground; + String? get background; + String? get onBackground; String get surface; String get onSurface; String? get surfaceVariant; @@ -187,8 +187,8 @@ abstract mixin class $StacColorSchemeCopyWith<$Res> { String onError, String? errorContainer, String? onErrorContainer, - String background, - String onBackground, + String? background, + String? onBackground, String surface, String onSurface, String? surfaceVariant, @@ -233,8 +233,8 @@ class _$StacColorSchemeCopyWithImpl<$Res> Object? onError = null, Object? errorContainer = freezed, Object? onErrorContainer = freezed, - Object? background = null, - Object? onBackground = null, + Object? background = freezed, + Object? onBackground = freezed, Object? surface = null, Object? onSurface = null, Object? surfaceVariant = freezed, @@ -317,14 +317,14 @@ class _$StacColorSchemeCopyWithImpl<$Res> ? _self.onErrorContainer : onErrorContainer // ignore: cast_nullable_to_non_nullable as String?, - background: null == background + background: freezed == background ? _self.background : background // ignore: cast_nullable_to_non_nullable - as String, - onBackground: null == onBackground + as String?, + onBackground: freezed == onBackground ? _self.onBackground : onBackground // ignore: cast_nullable_to_non_nullable - as String, + as String?, surface: null == surface ? _self.surface : surface // ignore: cast_nullable_to_non_nullable @@ -398,8 +398,8 @@ class _StacColorScheme implements StacColorScheme { required this.onError, this.errorContainer, this.onErrorContainer, - required this.background, - required this.onBackground, + this.background, + this.onBackground, required this.surface, required this.onSurface, this.surfaceVariant, @@ -450,9 +450,9 @@ class _StacColorScheme implements StacColorScheme { @override final String? onErrorContainer; @override - final String background; + final String? background; @override - final String onBackground; + final String? onBackground; @override final String surface; @override @@ -624,8 +624,8 @@ abstract mixin class _$StacColorSchemeCopyWith<$Res> String onError, String? errorContainer, String? onErrorContainer, - String background, - String onBackground, + String? background, + String? onBackground, String surface, String onSurface, String? surfaceVariant, @@ -670,8 +670,8 @@ class __$StacColorSchemeCopyWithImpl<$Res> Object? onError = null, Object? errorContainer = freezed, Object? onErrorContainer = freezed, - Object? background = null, - Object? onBackground = null, + Object? background = freezed, + Object? onBackground = freezed, Object? surface = null, Object? onSurface = null, Object? surfaceVariant = freezed, @@ -754,14 +754,14 @@ class __$StacColorSchemeCopyWithImpl<$Res> ? _self.onErrorContainer : onErrorContainer // ignore: cast_nullable_to_non_nullable as String?, - background: null == background + background: freezed == background ? _self.background : background // ignore: cast_nullable_to_non_nullable - as String, - onBackground: null == onBackground + as String?, + onBackground: freezed == onBackground ? _self.onBackground : onBackground // ignore: cast_nullable_to_non_nullable - as String, + as String?, surface: null == surface ? _self.surface : surface // ignore: cast_nullable_to_non_nullable diff --git a/packages/stac/lib/src/parsers/stac_color_scheme/stac_color_scheme.g.dart b/packages/stac/lib/src/parsers/stac_color_scheme/stac_color_scheme.g.dart index 9f69189b..54cd562a 100644 --- a/packages/stac/lib/src/parsers/stac_color_scheme/stac_color_scheme.g.dart +++ b/packages/stac/lib/src/parsers/stac_color_scheme/stac_color_scheme.g.dart @@ -25,8 +25,8 @@ _StacColorScheme _$StacColorSchemeFromJson(Map json) => onError: json['onError'] as String, errorContainer: json['errorContainer'] as String?, onErrorContainer: json['onErrorContainer'] as String?, - background: json['background'] as String, - onBackground: json['onBackground'] as String, + background: json['background'] as String?, + onBackground: json['onBackground'] as String?, surface: json['surface'] as String, onSurface: json['onSurface'] as String, surfaceVariant: json['surfaceVariant'] as String?,