From a94dd330a5ec04cb869f07f59df4aab858aa22a9 Mon Sep 17 00:00:00 2001 From: Remi Rousselet Date: Sun, 29 Oct 2023 02:47:06 +0100 Subject: [PATCH] Update generated files --- examples/pub/lib/detail.g.dart | 6 +- examples/pub/lib/search.g.dart | 3 +- .../integration/build_yaml/lib/main.g.dart | 14 +- .../test/integration/annotated.g.dart | 8 +- .../test/integration/async.g.dart | 117 +++++++--- .../test/integration/dependencies.g.dart | 6 +- .../test/integration/dependencies2.g.dart | 5 +- .../test/integration/generated.g.dart | 29 ++- .../test/integration/stream.g.dart | 108 +++++++-- .../test/integration/sync.g.dart | 178 ++++++++++++--- .../generated/golden/lib/sync.g.dart | 4 +- ..._class_based_provider_to_functional.g.dart | 52 ++++- ..._functional_provider_to_class_based.g.dart | 2 +- .../avoid_build_context_in_providers.g.dart | 4 +- .../avoid_public_notifier_properties.g.dart | 2 +- .../test/lints/dependencies.g.dart | 4 +- .../functional_ref/functional_ref.g.dart | 210 +++++++++++++++--- .../notifier_extends/notifier_extends.g.dart | 200 ++++++++++++++--- .../protected_notifier_properties.g.dart | 12 +- .../test/lints/provider_parameters.g.dart | 2 +- .../docs/concepts/about_codegen/main.g.dart | 2 +- .../about_codegen/provider_type/family.g.dart | 2 +- .../provider_type/family_class.g.dart | 2 +- .../provider_type/family_fn.g.dart | 2 +- .../invalidate_family_example/codegen.g.dart | 4 +- .../passing_args/codegen/family.g.dart | 2 +- .../docs/from_provider/family/family.g.dart | 2 +- .../introduction/why_riverpod/codegen.g.dart | 3 +- .../family_and_dispose.g.dart | 3 +- .../current/about_codegen/main.g.dart | 2 +- .../current/about_codegen/main.g.dart | 2 +- .../current/about_codegen/main.g.dart | 2 +- .../current/about_codegen/main.g.dart | 2 +- 33 files changed, 768 insertions(+), 228 deletions(-) diff --git a/examples/pub/lib/detail.g.dart b/examples/pub/lib/detail.g.dart index 748b6e3fa..7397fc2ea 100644 --- a/examples/pub/lib/detail.g.dart +++ b/examples/pub/lib/detail.g.dart @@ -81,8 +81,7 @@ class FetchPackageDetailsFamily extends Family { } } -class _$FetchPackageDetailsFamilyOverride - implements FamilyOverride> { +class _$FetchPackageDetailsFamilyOverride implements FamilyOverride { _$FetchPackageDetailsFamilyOverride(this.overriddenFamily, this.create); final FutureOr Function(FetchPackageDetailsRef ref) create; @@ -318,8 +317,7 @@ class PackageMetricsFamily extends Family { } } -class _$PackageMetricsFamilyOverride - implements FamilyOverride> { +class _$PackageMetricsFamilyOverride implements FamilyOverride { _$PackageMetricsFamilyOverride(this.overriddenFamily, this.create); final PackageMetrics Function() create; diff --git a/examples/pub/lib/search.g.dart b/examples/pub/lib/search.g.dart index c9161f8a6..d43cf5161 100644 --- a/examples/pub/lib/search.g.dart +++ b/examples/pub/lib/search.g.dart @@ -83,8 +83,7 @@ class FetchPackagesFamily extends Family { } } -class _$FetchPackagesFamilyOverride - implements FamilyOverride>> { +class _$FetchPackagesFamilyOverride implements FamilyOverride { _$FetchPackagesFamilyOverride(this.overriddenFamily, this.create); final FutureOr> Function(FetchPackagesRef ref) create; diff --git a/packages/riverpod_generator/integration/build_yaml/lib/main.g.dart b/packages/riverpod_generator/integration/build_yaml/lib/main.g.dart index 45ddb938a..4448b8c92 100644 --- a/packages/riverpod_generator/integration/build_yaml/lib/main.g.dart +++ b/packages/riverpod_generator/integration/build_yaml/lib/main.g.dart @@ -119,7 +119,7 @@ class Count2Family extends Family { } } -class _$Count2FamilyOverride implements FamilyOverride { +class _$Count2FamilyOverride implements FamilyOverride { _$Count2FamilyOverride(this.overriddenFamily, this.create); final int Function(Count2Ref ref) create; @@ -287,7 +287,7 @@ class CountFuture2Family extends Family { } } -class _$CountFuture2FamilyOverride implements FamilyOverride> { +class _$CountFuture2FamilyOverride implements FamilyOverride { _$CountFuture2FamilyOverride(this.overriddenFamily, this.create); final FutureOr Function(CountFuture2Ref ref) create; @@ -456,7 +456,7 @@ class CountStream2Family extends Family { } } -class _$CountStream2FamilyOverride implements FamilyOverride> { +class _$CountStream2FamilyOverride implements FamilyOverride { _$CountStream2FamilyOverride(this.overriddenFamily, this.create); final Stream Function(CountStream2Ref ref) create; @@ -683,7 +683,7 @@ class CountNotifier2Family extends Family { } } -class _$CountNotifier2FamilyOverride implements FamilyOverride { +class _$CountNotifier2FamilyOverride implements FamilyOverride { _$CountNotifier2FamilyOverride(this.overriddenFamily, this.create); final CountNotifier2 Function() create; @@ -868,8 +868,7 @@ class CountAsyncNotifier2Family extends Family { } } -class _$CountAsyncNotifier2FamilyOverride - implements FamilyOverride> { +class _$CountAsyncNotifier2FamilyOverride implements FamilyOverride { _$CountAsyncNotifier2FamilyOverride(this.overriddenFamily, this.create); final CountAsyncNotifier2 Function() create; @@ -1055,8 +1054,7 @@ class CountStreamNotifier2Family extends Family { } } -class _$CountStreamNotifier2FamilyOverride - implements FamilyOverride> { +class _$CountStreamNotifier2FamilyOverride implements FamilyOverride { _$CountStreamNotifier2FamilyOverride(this.overriddenFamily, this.create); final CountStreamNotifier2 Function() create; diff --git a/packages/riverpod_generator/test/integration/annotated.g.dart b/packages/riverpod_generator/test/integration/annotated.g.dart index 3b5aa9b38..99bfe831a 100644 --- a/packages/riverpod_generator/test/integration/annotated.g.dart +++ b/packages/riverpod_generator/test/integration/annotated.g.dart @@ -54,7 +54,7 @@ class _SystemHash { const familyProvider = FamilyFamily(); /// See also [family]. -class FamilyFamily extends Family { +class FamilyFamily extends Family { /// See also [family]. const FamilyFamily(); @@ -97,7 +97,7 @@ class FamilyFamily extends Family { } } -class _$FamilyFamilyOverride implements FamilyOverride { +class _$FamilyFamilyOverride implements FamilyOverride { _$FamilyFamilyOverride(this.overriddenFamily, this.create); final String Function(FamilyRef ref) create; @@ -238,7 +238,7 @@ String _$notCopiedFamilyHash() => r'6ef06ce6ebd73b476870bbe1af41c4f3fbe8ddb1'; const notCopiedFamilyProvider = NotCopiedFamilyFamily(); /// See also [notCopiedFamily]. -class NotCopiedFamilyFamily extends Family { +class NotCopiedFamilyFamily extends Family { /// See also [notCopiedFamily]. const NotCopiedFamilyFamily(); @@ -281,7 +281,7 @@ class NotCopiedFamilyFamily extends Family { } } -class _$NotCopiedFamilyFamilyOverride implements FamilyOverride { +class _$NotCopiedFamilyFamilyOverride implements FamilyOverride { _$NotCopiedFamilyFamilyOverride(this.overriddenFamily, this.create); final String Function(NotCopiedFamilyRef ref) create; diff --git a/packages/riverpod_generator/test/integration/async.g.dart b/packages/riverpod_generator/test/integration/async.g.dart index 9e050498b..19008ae42 100644 --- a/packages/riverpod_generator/test/integration/async.g.dart +++ b/packages/riverpod_generator/test/integration/async.g.dart @@ -38,6 +38,20 @@ class GenericFamily extends Family { /// See also [generic]. const GenericFamily(); + static const Iterable? _dependencies = null; + + static const Iterable? _allTransitiveDependencies = null; + + @override + Iterable? get dependencies => _dependencies; + + @override + Iterable? get allTransitiveDependencies => + _allTransitiveDependencies; + + @override + String? get name => r'genericProvider'; + /// See also [generic]. GenericProvider call() { return GenericProvider(); @@ -51,19 +65,27 @@ class GenericFamily extends Family { return call(); } - static const Iterable? _dependencies = null; + /// Enables overriding the behavior of this provider, no matter the parameters. + Override overrideWith( + FutureOr> Function(GenericRef ref) create) { + return _$GenericFamilyOverride(this, create); + } +} - @override - Iterable? get dependencies => _dependencies; +class _$GenericFamilyOverride implements FamilyOverride { + _$GenericFamilyOverride(this.overriddenFamily, this.create); - static const Iterable? _allTransitiveDependencies = null; + final FutureOr> Function(GenericRef ref) create; @override - Iterable? get allTransitiveDependencies => - _allTransitiveDependencies; + final GenericFamily overriddenFamily; @override - String? get name => r'genericProvider'; + GenericProvider getProviderOverride( + covariant GenericProvider provider, + ) { + return provider._copyWith(create); + } } /// See also [generic]. @@ -86,7 +108,7 @@ class GenericProvider ); GenericProvider._internal( - super._createNotifier, { + super.create, { required super.name, required super.dependencies, required super.allTransitiveDependencies, @@ -96,7 +118,7 @@ class GenericProvider @override Override overrideWith( - FutureOr> Function(GenericRef provider) create, + FutureOr> Function(GenericRef ref) create, ) { return ProviderOverride( origin: this, @@ -121,6 +143,19 @@ class GenericProvider return _GenericProviderElement(this); } + GenericProvider _copyWith( + FutureOr> Function(GenericRef ref) create, + ) { + return GenericProvider._internal( + (ref) => create(ref as GenericRef), + name: name, + dependencies: dependencies, + allTransitiveDependencies: allTransitiveDependencies, + debugGetCreateSourceHash: debugGetCreateSourceHash, + from: from, + ); + } + @override bool operator ==(Object other) { return other is GenericProvider && other.runtimeType == runtimeType; @@ -220,7 +255,7 @@ class FamilyOrFamily extends Family { } } -class _$FamilyOrFamilyOverride implements FamilyOverride> { +class _$FamilyOrFamilyOverride implements FamilyOverride { _$FamilyOrFamilyOverride(this.overriddenFamily, this.create); final FutureOr Function(FamilyOrRef ref) create; @@ -400,7 +435,7 @@ class FamilyFamily extends Family { } } -class _$FamilyFamilyOverride implements FamilyOverride> { +class _$FamilyFamilyOverride implements FamilyOverride { _$FamilyFamilyOverride(this.overriddenFamily, this.create); final FutureOr Function(FamilyRef ref) create; @@ -591,7 +626,7 @@ String _$genericClassHash() => r'd3c4acc9cdae12f6c666fbf1f89aee212bb086db'; abstract class _$GenericClass extends BuildlessAutoDisposeAsyncNotifier> { - Future> build(); + FutureOr> build(); } /// See also [GenericClass]. @@ -603,6 +638,20 @@ class GenericClassFamily extends Family { /// See also [GenericClass]. const GenericClassFamily(); + static const Iterable? _dependencies = null; + + static const Iterable? _allTransitiveDependencies = null; + + @override + Iterable? get dependencies => _dependencies; + + @override + Iterable? get allTransitiveDependencies => + _allTransitiveDependencies; + + @override + String? get name => r'genericClassProvider'; + /// See also [GenericClass]. GenericClassProvider call() { return GenericClassProvider(); @@ -616,19 +665,26 @@ class GenericClassFamily extends Family { return call(); } - static const Iterable? _dependencies = null; + /// Enables overriding the behavior of this provider, no matter the parameters. + Override overrideWith(GenericClass Function() create) { + return _$GenericClassFamilyOverride(this, create); + } +} - @override - Iterable? get dependencies => _dependencies; +class _$GenericClassFamilyOverride implements FamilyOverride { + _$GenericClassFamilyOverride(this.overriddenFamily, this.create); - static const Iterable? _allTransitiveDependencies = null; + final GenericClass Function() create; @override - Iterable? get allTransitiveDependencies => - _allTransitiveDependencies; + final GenericClassFamily overriddenFamily; @override - String? get name => r'genericClassProvider'; + GenericClassProvider getProviderOverride( + covariant GenericClassProvider provider, + ) { + return provider._copyWith(create); + } } /// See also [GenericClass]. @@ -650,7 +706,7 @@ class GenericClassProvider ); GenericClassProvider._internal( - super._createNotifier, { + super.create, { required super.name, required super.dependencies, required super.allTransitiveDependencies, @@ -659,7 +715,7 @@ class GenericClassProvider }) : super.internal(); @override - Future> runNotifierBuild( + FutureOr> runNotifierBuild( covariant GenericClass notifier, ) { return notifier.build(); @@ -691,6 +747,19 @@ class GenericClassProvider return _GenericClassProviderElement(this); } + GenericClassProvider _copyWith( + GenericClass Function() create, + ) { + return GenericClassProvider._internal( + () => create(), + name: name, + dependencies: dependencies, + allTransitiveDependencies: allTransitiveDependencies, + debugGetCreateSourceHash: debugGetCreateSourceHash, + from: from, + ); + } + @override bool operator ==(Object other) { return other is GenericClassProvider && other.runtimeType == runtimeType; @@ -803,8 +872,7 @@ class FamilyOrClassFamily extends Family { } } -class _$FamilyOrClassFamilyOverride - implements FamilyOverride> { +class _$FamilyOrClassFamilyOverride implements FamilyOverride { _$FamilyOrClassFamilyOverride(this.overriddenFamily, this.create); final FamilyOrClass Function() create; @@ -1008,8 +1076,7 @@ class FamilyClassFamily extends Family { } } -class _$FamilyClassFamilyOverride - implements FamilyOverride> { +class _$FamilyClassFamilyOverride implements FamilyOverride { _$FamilyClassFamilyOverride(this.overriddenFamily, this.create); final FamilyClass Function() create; diff --git a/packages/riverpod_generator/test/integration/dependencies.g.dart b/packages/riverpod_generator/test/integration/dependencies.g.dart index b499e8112..0126eab5a 100644 --- a/packages/riverpod_generator/test/integration/dependencies.g.dart +++ b/packages/riverpod_generator/test/integration/dependencies.g.dart @@ -91,7 +91,7 @@ class FamilyFamily extends Family { } } -class _$FamilyFamilyOverride implements FamilyOverride { +class _$FamilyFamilyOverride implements FamilyOverride { _$FamilyFamilyOverride(this.overriddenFamily, this.create); final int Function(FamilyRef ref) create; @@ -445,7 +445,7 @@ class Family2Family extends Family { } } -class _$Family2FamilyOverride implements FamilyOverride { +class _$Family2FamilyOverride implements FamilyOverride { _$Family2FamilyOverride(this.overriddenFamily, this.create); final Family2 Function() create; @@ -668,7 +668,7 @@ class Provider4Family extends Family { } } -class _$Provider4FamilyOverride implements FamilyOverride { +class _$Provider4FamilyOverride implements FamilyOverride { _$Provider4FamilyOverride(this.overriddenFamily, this.create); final Provider4 Function() create; diff --git a/packages/riverpod_generator/test/integration/dependencies2.g.dart b/packages/riverpod_generator/test/integration/dependencies2.g.dart index 509fb1ace..68f5c4873 100644 --- a/packages/riverpod_generator/test/integration/dependencies2.g.dart +++ b/packages/riverpod_generator/test/integration/dependencies2.g.dart @@ -117,7 +117,7 @@ class FamilyWithDependencies2Family extends Family { } } -class _$FamilyWithDependencies2FamilyOverride implements FamilyOverride { +class _$FamilyWithDependencies2FamilyOverride implements FamilyOverride { _$FamilyWithDependencies2FamilyOverride(this.overriddenFamily, this.create); final int Function(FamilyWithDependencies2Ref ref) create; @@ -367,8 +367,7 @@ class NotifierFamilyWithDependenciesFamily extends Family { } } -class _$NotifierFamilyWithDependenciesFamilyOverride - implements FamilyOverride { +class _$NotifierFamilyWithDependenciesFamilyOverride implements FamilyOverride { _$NotifierFamilyWithDependenciesFamilyOverride( this.overriddenFamily, this.create); diff --git a/packages/riverpod_generator/test/integration/generated.g.dart b/packages/riverpod_generator/test/integration/generated.g.dart index 6f18708d3..3a6bd55cb 100644 --- a/packages/riverpod_generator/test/integration/generated.g.dart +++ b/packages/riverpod_generator/test/integration/generated.g.dart @@ -48,7 +48,7 @@ class _SystemHash { const generatedFamilyProvider = GeneratedFamilyFamily(); /// See also [generatedFamily]. -class GeneratedFamilyFamily extends Family<_Test> { +class GeneratedFamilyFamily extends Family { /// See also [generatedFamily]. const GeneratedFamilyFamily(); @@ -91,7 +91,7 @@ class GeneratedFamilyFamily extends Family<_Test> { } } -class _$GeneratedFamilyFamilyOverride implements FamilyOverride<_Test> { +class _$GeneratedFamilyFamilyOverride implements FamilyOverride { _$GeneratedFamilyFamilyOverride(this.overriddenFamily, this.create); final _Test Function(GeneratedFamilyRef ref) create; @@ -231,7 +231,7 @@ String _$$dynamicFamilyHash() => r'b764133af8837b8321b08814892f198d4bc1aa18'; const $dynamicFamilyProvider = $DynamicFamilyFamily(); /// See also [$dynamicFamily]. -class $DynamicFamilyFamily extends Family { +class $DynamicFamilyFamily extends Family { /// See also [$dynamicFamily]. const $DynamicFamilyFamily(); @@ -274,7 +274,7 @@ class $DynamicFamilyFamily extends Family { } } -class _$$DynamicFamilyFamilyOverride implements FamilyOverride { +class _$$DynamicFamilyFamilyOverride implements FamilyOverride { _$$DynamicFamilyFamilyOverride(this.overriddenFamily, this.create); final Object? Function($DynamicFamilyRef ref) create; @@ -400,7 +400,7 @@ String _$dynamicHash() => r'da9dc07960139fff2cf5fe584dca5c524e4f2308'; const _dynamicProvider = _DynamicFamily(); /// See also [_dynamic]. -class _DynamicFamily extends Family { +class _DynamicFamily extends Family { /// See also [_dynamic]. const _DynamicFamily(); @@ -443,7 +443,7 @@ class _DynamicFamily extends Family { } } -class _$DynamicFamilyOverride implements FamilyOverride { +class _$DynamicFamilyOverride implements FamilyOverride { _$DynamicFamilyOverride(this.overriddenFamily, this.create); final Object? Function(_DynamicRef ref) create; @@ -582,7 +582,7 @@ String _$aliasFamilyHash() => r'f345937d5750132f629aef41646b119a301f750b'; const aliasFamilyProvider = AliasFamilyFamily(); /// See also [aliasFamily]. -class AliasFamilyFamily extends Family> { +class AliasFamilyFamily extends Family { /// See also [aliasFamily]. const AliasFamilyFamily(); @@ -625,7 +625,7 @@ class AliasFamilyFamily extends Family> { } } -class _$AliasFamilyFamilyOverride implements FamilyOverride> { +class _$AliasFamilyFamilyOverride implements FamilyOverride { _$AliasFamilyFamilyOverride(this.overriddenFamily, this.create); final r.AsyncValue Function(AliasFamilyRef ref) create; @@ -777,7 +777,7 @@ abstract class _$GeneratedClassFamily const generatedClassFamilyProvider = GeneratedClassFamilyFamily(); /// See also [GeneratedClassFamily]. -class GeneratedClassFamilyFamily extends Family<_Test> { +class GeneratedClassFamilyFamily extends Family { /// See also [GeneratedClassFamily]. const GeneratedClassFamilyFamily(); @@ -820,7 +820,7 @@ class GeneratedClassFamilyFamily extends Family<_Test> { } } -class _$GeneratedClassFamilyFamilyOverride implements FamilyOverride<_Test> { +class _$GeneratedClassFamilyFamilyOverride implements FamilyOverride { _$GeneratedClassFamilyFamilyOverride(this.overriddenFamily, this.create); final GeneratedClassFamily Function() create; @@ -979,7 +979,7 @@ abstract class _$$DynamicClassFamily const $dynamicClassFamilyProvider = $DynamicClassFamilyFamily(); /// See also [$DynamicClassFamily]. -class $DynamicClassFamilyFamily extends Family { +class $DynamicClassFamilyFamily extends Family { /// See also [$DynamicClassFamily]. const $DynamicClassFamilyFamily(); @@ -1022,7 +1022,7 @@ class $DynamicClassFamilyFamily extends Family { } } -class _$$DynamicClassFamilyFamilyOverride implements FamilyOverride { +class _$$DynamicClassFamilyFamilyOverride implements FamilyOverride { _$$DynamicClassFamilyFamilyOverride(this.overriddenFamily, this.create); final $DynamicClassFamily Function() create; @@ -1179,7 +1179,7 @@ abstract class _$AliasClassFamily const aliasClassFamilyProvider = AliasClassFamilyFamily(); /// See also [AliasClassFamily]. -class AliasClassFamilyFamily extends Family> { +class AliasClassFamilyFamily extends Family { /// See also [AliasClassFamily]. const AliasClassFamilyFamily(); @@ -1222,8 +1222,7 @@ class AliasClassFamilyFamily extends Family> { } } -class _$AliasClassFamilyFamilyOverride - implements FamilyOverride> { +class _$AliasClassFamilyFamilyOverride implements FamilyOverride { _$AliasClassFamilyFamilyOverride(this.overriddenFamily, this.create); final AliasClassFamily Function() create; diff --git a/packages/riverpod_generator/test/integration/stream.g.dart b/packages/riverpod_generator/test/integration/stream.g.dart index 712b69cf2..e5e916a48 100644 --- a/packages/riverpod_generator/test/integration/stream.g.dart +++ b/packages/riverpod_generator/test/integration/stream.g.dart @@ -38,6 +38,20 @@ class GenericFamily extends Family { /// See also [generic]. const GenericFamily(); + static const Iterable? _dependencies = null; + + static const Iterable? _allTransitiveDependencies = null; + + @override + Iterable? get dependencies => _dependencies; + + @override + Iterable? get allTransitiveDependencies => + _allTransitiveDependencies; + + @override + String? get name => r'genericProvider'; + /// See also [generic]. GenericProvider call() { return GenericProvider(); @@ -51,19 +65,27 @@ class GenericFamily extends Family { return call(); } - static const Iterable? _dependencies = null; + /// Enables overriding the behavior of this provider, no matter the parameters. + Override overrideWith( + Stream> Function(GenericRef ref) create) { + return _$GenericFamilyOverride(this, create); + } +} - @override - Iterable? get dependencies => _dependencies; +class _$GenericFamilyOverride implements FamilyOverride { + _$GenericFamilyOverride(this.overriddenFamily, this.create); - static const Iterable? _allTransitiveDependencies = null; + final Stream> Function(GenericRef ref) create; @override - Iterable? get allTransitiveDependencies => - _allTransitiveDependencies; + final GenericFamily overriddenFamily; @override - String? get name => r'genericProvider'; + GenericProvider getProviderOverride( + covariant GenericProvider provider, + ) { + return provider._copyWith(create); + } } /// See also [generic]. @@ -86,7 +108,7 @@ class GenericProvider ); GenericProvider._internal( - super._createNotifier, { + super.create, { required super.name, required super.dependencies, required super.allTransitiveDependencies, @@ -96,7 +118,7 @@ class GenericProvider @override Override overrideWith( - Stream> Function(GenericRef provider) create, + Stream> Function(GenericRef ref) create, ) { return ProviderOverride( origin: this, @@ -121,6 +143,19 @@ class GenericProvider return _GenericProviderElement(this); } + GenericProvider _copyWith( + Stream> Function(GenericRef ref) create, + ) { + return GenericProvider._internal( + (ref) => create(ref as GenericRef), + name: name, + dependencies: dependencies, + allTransitiveDependencies: allTransitiveDependencies, + debugGetCreateSourceHash: debugGetCreateSourceHash, + from: from, + ); + } + @override bool operator ==(Object other) { return other is GenericProvider && other.runtimeType == runtimeType; @@ -232,7 +267,7 @@ class FamilyFamily extends Family { } } -class _$FamilyFamilyOverride implements FamilyOverride> { +class _$FamilyFamilyOverride implements FamilyOverride { _$FamilyFamilyOverride(this.overriddenFamily, this.create); final Stream Function(FamilyRef ref) create; @@ -435,6 +470,20 @@ class GenericClassFamily extends Family { /// See also [GenericClass]. const GenericClassFamily(); + static const Iterable? _dependencies = null; + + static const Iterable? _allTransitiveDependencies = null; + + @override + Iterable? get dependencies => _dependencies; + + @override + Iterable? get allTransitiveDependencies => + _allTransitiveDependencies; + + @override + String? get name => r'genericClassProvider'; + /// See also [GenericClass]. GenericClassProvider call() { return GenericClassProvider(); @@ -448,19 +497,26 @@ class GenericClassFamily extends Family { return call(); } - static const Iterable? _dependencies = null; + /// Enables overriding the behavior of this provider, no matter the parameters. + Override overrideWith(GenericClass Function() create) { + return _$GenericClassFamilyOverride(this, create); + } +} - @override - Iterable? get dependencies => _dependencies; +class _$GenericClassFamilyOverride implements FamilyOverride { + _$GenericClassFamilyOverride(this.overriddenFamily, this.create); - static const Iterable? _allTransitiveDependencies = null; + final GenericClass Function() create; @override - Iterable? get allTransitiveDependencies => - _allTransitiveDependencies; + final GenericClassFamily overriddenFamily; @override - String? get name => r'genericClassProvider'; + GenericClassProvider getProviderOverride( + covariant GenericClassProvider provider, + ) { + return provider._copyWith(create); + } } /// See also [GenericClass]. @@ -482,7 +538,7 @@ class GenericClassProvider ); GenericClassProvider._internal( - super._createNotifier, { + super.create, { required super.name, required super.dependencies, required super.allTransitiveDependencies, @@ -523,6 +579,19 @@ class GenericClassProvider return _GenericClassProviderElement(this); } + GenericClassProvider _copyWith( + GenericClass Function() create, + ) { + return GenericClassProvider._internal( + () => create(), + name: name, + dependencies: dependencies, + allTransitiveDependencies: allTransitiveDependencies, + debugGetCreateSourceHash: debugGetCreateSourceHash, + from: from, + ); + } + @override bool operator ==(Object other) { return other is GenericClassProvider && other.runtimeType == runtimeType; @@ -655,8 +724,7 @@ class FamilyClassFamily extends Family { } } -class _$FamilyClassFamilyOverride - implements FamilyOverride> { +class _$FamilyClassFamilyOverride implements FamilyOverride { _$FamilyClassFamilyOverride(this.overriddenFamily, this.create); final FamilyClass Function() create; diff --git a/packages/riverpod_generator/test/integration/sync.g.dart b/packages/riverpod_generator/test/integration/sync.g.dart index ac74a9b1f..d7f9395e7 100644 --- a/packages/riverpod_generator/test/integration/sync.g.dart +++ b/packages/riverpod_generator/test/integration/sync.g.dart @@ -38,6 +38,20 @@ class GenericFamily extends Family { /// See also [generic]. const GenericFamily(); + static const Iterable? _dependencies = null; + + static const Iterable? _allTransitiveDependencies = null; + + @override + Iterable? get dependencies => _dependencies; + + @override + Iterable? get allTransitiveDependencies => + _allTransitiveDependencies; + + @override + String? get name => r'genericProvider'; + /// See also [generic]. GenericProvider call() { return GenericProvider(); @@ -51,19 +65,27 @@ class GenericFamily extends Family { return call(); } - static const Iterable? _dependencies = null; + /// Enables overriding the behavior of this provider, no matter the parameters. + Override overrideWith( + List Function(GenericRef ref) create) { + return _$GenericFamilyOverride(this, create); + } +} - @override - Iterable? get dependencies => _dependencies; +class _$GenericFamilyOverride implements FamilyOverride { + _$GenericFamilyOverride(this.overriddenFamily, this.create); - static const Iterable? _allTransitiveDependencies = null; + final List Function(GenericRef ref) create; @override - Iterable? get allTransitiveDependencies => - _allTransitiveDependencies; + final GenericFamily overriddenFamily; @override - String? get name => r'genericProvider'; + GenericProvider getProviderOverride( + covariant GenericProvider provider, + ) { + return provider._copyWith(create); + } } /// See also [generic]. @@ -85,7 +107,7 @@ class GenericProvider extends AutoDisposeProvider> { ); GenericProvider._internal( - super._createNotifier, { + super.create, { required super.name, required super.dependencies, required super.allTransitiveDependencies, @@ -95,7 +117,7 @@ class GenericProvider extends AutoDisposeProvider> { @override Override overrideWith( - List Function(GenericRef provider) create, + List Function(GenericRef ref) create, ) { return ProviderOverride( origin: this, @@ -120,6 +142,19 @@ class GenericProvider extends AutoDisposeProvider> { return _GenericProviderElement(this); } + GenericProvider _copyWith( + List Function(GenericRef ref) create, + ) { + return GenericProvider._internal( + (ref) => create(ref as GenericRef), + name: name, + dependencies: dependencies, + allTransitiveDependencies: allTransitiveDependencies, + debugGetCreateSourceHash: debugGetCreateSourceHash, + from: from, + ); + } + @override bool operator ==(Object other) { return other is GenericProvider && other.runtimeType == runtimeType; @@ -152,6 +187,20 @@ class ComplexGenericFamily extends Family { /// See also [complexGeneric]. const ComplexGenericFamily(); + static const Iterable? _dependencies = null; + + static const Iterable? _allTransitiveDependencies = null; + + @override + Iterable? get dependencies => _dependencies; + + @override + Iterable? get allTransitiveDependencies => + _allTransitiveDependencies; + + @override + String? get name => r'complexGenericProvider'; + /// See also [complexGeneric]. ComplexGenericProvider call({ required T param, @@ -174,19 +223,30 @@ class ComplexGenericFamily extends Family { ); } - static const Iterable? _dependencies = null; + /// Enables overriding the behavior of this provider, no matter the parameters. + Override overrideWith( + List Function( + ComplexGenericRef ref) + create) { + return _$ComplexGenericFamilyOverride(this, create); + } +} - @override - Iterable? get dependencies => _dependencies; +class _$ComplexGenericFamilyOverride implements FamilyOverride { + _$ComplexGenericFamilyOverride(this.overriddenFamily, this.create); - static const Iterable? _allTransitiveDependencies = null; + final List Function( + ComplexGenericRef ref) create; @override - Iterable? get allTransitiveDependencies => - _allTransitiveDependencies; + final ComplexGenericFamily overriddenFamily; @override - String? get name => r'complexGenericProvider'; + ComplexGenericProvider getProviderOverride( + covariant ComplexGenericProvider provider, + ) { + return provider._copyWith(create); + } } /// See also [complexGeneric]. @@ -216,7 +276,7 @@ class ComplexGenericProvider ); ComplexGenericProvider._internal( - super._createNotifier, { + super.create, { required super.name, required super.dependencies, required super.allTransitiveDependencies, @@ -231,7 +291,7 @@ class ComplexGenericProvider @override Override overrideWith( - List Function(ComplexGenericRef provider) create, + List Function(ComplexGenericRef ref) create, ) { return ProviderOverride( origin: this, @@ -264,6 +324,22 @@ class ComplexGenericProvider return _ComplexGenericProviderElement(this); } + ComplexGenericProvider _copyWith( + List Function(ComplexGenericRef ref) + create, + ) { + return ComplexGenericProvider._internal( + (ref) => create(ref as ComplexGenericRef), + name: name, + dependencies: dependencies, + allTransitiveDependencies: allTransitiveDependencies, + debugGetCreateSourceHash: debugGetCreateSourceHash, + from: from, + param: param, + otherParam: otherParam, + ); + } + @override bool operator ==(Object other) { return other is ComplexGenericProvider && @@ -382,8 +458,7 @@ class RawFamilyFutureFamily extends Family { } } -class _$RawFamilyFutureFamilyOverride - implements FamilyOverride>> { +class _$RawFamilyFutureFamilyOverride implements FamilyOverride { _$RawFamilyFutureFamilyOverride(this.overriddenFamily, this.create); final Raw> Function(RawFamilyFutureRef ref) create; @@ -554,8 +629,7 @@ class RawFamilyStreamFamily extends Family { } } -class _$RawFamilyStreamFamilyOverride - implements FamilyOverride>> { +class _$RawFamilyStreamFamilyOverride implements FamilyOverride { _$RawFamilyStreamFamilyOverride(this.overriddenFamily, this.create); final Raw> Function(RawFamilyStreamRef ref) create; @@ -776,7 +850,7 @@ class FamilyFamily extends Family { } } -class _$FamilyFamilyOverride implements FamilyOverride { +class _$FamilyFamilyOverride implements FamilyOverride { _$FamilyFamilyOverride(this.overriddenFamily, this.create); final String Function(FamilyRef ref) create; @@ -1011,6 +1085,20 @@ class GenericClassFamily extends Family { /// See also [GenericClass]. const GenericClassFamily(); + static const Iterable? _dependencies = null; + + static const Iterable? _allTransitiveDependencies = null; + + @override + Iterable? get dependencies => _dependencies; + + @override + Iterable? get allTransitiveDependencies => + _allTransitiveDependencies; + + @override + String? get name => r'genericClassProvider'; + /// See also [GenericClass]. GenericClassProvider call() { return GenericClassProvider(); @@ -1024,19 +1112,26 @@ class GenericClassFamily extends Family { return call(); } - static const Iterable? _dependencies = null; + /// Enables overriding the behavior of this provider, no matter the parameters. + Override overrideWith(GenericClass Function() create) { + return _$GenericClassFamilyOverride(this, create); + } +} - @override - Iterable? get dependencies => _dependencies; +class _$GenericClassFamilyOverride implements FamilyOverride { + _$GenericClassFamilyOverride(this.overriddenFamily, this.create); - static const Iterable? _allTransitiveDependencies = null; + final GenericClass Function() create; @override - Iterable? get allTransitiveDependencies => - _allTransitiveDependencies; + final GenericClassFamily overriddenFamily; @override - String? get name => r'genericClassProvider'; + GenericClassProvider getProviderOverride( + covariant GenericClassProvider provider, + ) { + return provider._copyWith(create); + } } /// See also [GenericClass]. @@ -1058,7 +1153,7 @@ class GenericClassProvider ); GenericClassProvider._internal( - super._createNotifier, { + super.create, { required super.name, required super.dependencies, required super.allTransitiveDependencies, @@ -1098,6 +1193,19 @@ class GenericClassProvider return _GenericClassProviderElement(this); } + GenericClassProvider _copyWith( + GenericClass Function() create, + ) { + return GenericClassProvider._internal( + () => create(), + name: name, + dependencies: dependencies, + allTransitiveDependencies: allTransitiveDependencies, + debugGetCreateSourceHash: debugGetCreateSourceHash, + from: from, + ); + } + @override bool operator ==(Object other) { return other is GenericClassProvider && other.runtimeType == runtimeType; @@ -1213,8 +1321,7 @@ class RawFamilyFutureClassFamily extends Family { } } -class _$RawFamilyFutureClassFamilyOverride - implements FamilyOverride>> { +class _$RawFamilyFutureClassFamilyOverride implements FamilyOverride { _$RawFamilyFutureClassFamilyOverride(this.overriddenFamily, this.create); final RawFamilyFutureClass Function() create; @@ -1401,8 +1508,7 @@ class RawFamilyStreamClassFamily extends Family { } } -class _$RawFamilyStreamClassFamilyOverride - implements FamilyOverride>> { +class _$RawFamilyStreamClassFamilyOverride implements FamilyOverride { _$RawFamilyStreamClassFamilyOverride(this.overriddenFamily, this.create); final RawFamilyStreamClass Function() create; @@ -1647,7 +1753,7 @@ class FamilyClassFamily extends Family { } } -class _$FamilyClassFamilyOverride implements FamilyOverride { +class _$FamilyClassFamilyOverride implements FamilyOverride { _$FamilyClassFamilyOverride(this.overriddenFamily, this.create); final FamilyClass Function() create; diff --git a/packages/riverpod_graph/test/integration/generated/golden/lib/sync.g.dart b/packages/riverpod_graph/test/integration/generated/golden/lib/sync.g.dart index 1235ead9a..7a09ecae2 100644 --- a/packages/riverpod_graph/test/integration/generated/golden/lib/sync.g.dart +++ b/packages/riverpod_graph/test/integration/generated/golden/lib/sync.g.dart @@ -130,7 +130,7 @@ class FamilyFamily extends Family { } } -class _$FamilyFamilyOverride implements FamilyOverride { +class _$FamilyFamilyOverride implements FamilyOverride { _$FamilyFamilyOverride(this.overriddenFamily, this.create); final String Function(FamilyRef ref) create; @@ -453,7 +453,7 @@ class FamilyClassFamily extends Family { } } -class _$FamilyClassFamilyOverride implements FamilyOverride { +class _$FamilyClassFamilyOverride implements FamilyOverride { _$FamilyClassFamilyOverride(this.overriddenFamily, this.create); final FamilyClass Function() create; diff --git a/packages/riverpod_lint_flutter_test/test/assists/convert_class_based_provider_to_functional/convert_class_based_provider_to_functional.g.dart b/packages/riverpod_lint_flutter_test/test/assists/convert_class_based_provider_to_functional/convert_class_based_provider_to_functional.g.dart index 18cd9af98..8e2a8b82e 100644 --- a/packages/riverpod_lint_flutter_test/test/assists/convert_class_based_provider_to_functional/convert_class_based_provider_to_functional.g.dart +++ b/packages/riverpod_lint_flutter_test/test/assists/convert_class_based_provider_to_functional/convert_class_based_provider_to_functional.g.dart @@ -114,7 +114,7 @@ class ExampleFamilyFamily extends Family { } } -class _$ExampleFamilyFamilyOverride implements FamilyOverride { +class _$ExampleFamilyFamilyOverride implements FamilyOverride { _$ExampleFamilyFamilyOverride(this.overriddenFamily, this.create); final ExampleFamily Function() create; @@ -283,6 +283,20 @@ class GenericFamily extends Family { /// See also [Generic]. const GenericFamily(); + static const Iterable? _dependencies = null; + + static const Iterable? _allTransitiveDependencies = null; + + @override + Iterable? get dependencies => _dependencies; + + @override + Iterable? get allTransitiveDependencies => + _allTransitiveDependencies; + + @override + String? get name => r'genericProvider'; + /// See also [Generic]. GenericProvider call() { return GenericProvider(); @@ -296,19 +310,26 @@ class GenericFamily extends Family { return call(); } - static const Iterable? _dependencies = null; + /// Enables overriding the behavior of this provider, no matter the parameters. + Override overrideWith(Generic Function() create) { + return _$GenericFamilyOverride(this, create); + } +} - @override - Iterable? get dependencies => _dependencies; +class _$GenericFamilyOverride implements FamilyOverride { + _$GenericFamilyOverride(this.overriddenFamily, this.create); - static const Iterable? _allTransitiveDependencies = null; + final Generic Function() create; @override - Iterable? get allTransitiveDependencies => - _allTransitiveDependencies; + final GenericFamily overriddenFamily; @override - String? get name => r'genericProvider'; + GenericProvider getProviderOverride( + covariant GenericProvider provider, + ) { + return provider._copyWith(create); + } } /// See also [Generic]. @@ -329,7 +350,7 @@ class GenericProvider ); GenericProvider._internal( - super._createNotifier, { + super.create, { required super.name, required super.dependencies, required super.allTransitiveDependencies, @@ -369,6 +390,19 @@ class GenericProvider return _GenericProviderElement(this); } + GenericProvider _copyWith( + Generic Function() create, + ) { + return GenericProvider._internal( + () => create(), + name: name, + dependencies: dependencies, + allTransitiveDependencies: allTransitiveDependencies, + debugGetCreateSourceHash: debugGetCreateSourceHash, + from: from, + ); + } + @override bool operator ==(Object other) { return other is GenericProvider && other.runtimeType == runtimeType; diff --git a/packages/riverpod_lint_flutter_test/test/assists/convert_functional_provider_to_class_based/convert_functional_provider_to_class_based.g.dart b/packages/riverpod_lint_flutter_test/test/assists/convert_functional_provider_to_class_based/convert_functional_provider_to_class_based.g.dart index f626e08bf..fce831170 100644 --- a/packages/riverpod_lint_flutter_test/test/assists/convert_functional_provider_to_class_based/convert_functional_provider_to_class_based.g.dart +++ b/packages/riverpod_lint_flutter_test/test/assists/convert_functional_provider_to_class_based/convert_functional_provider_to_class_based.g.dart @@ -104,7 +104,7 @@ class ExampleFamilyFamily extends Family { } } -class _$ExampleFamilyFamilyOverride implements FamilyOverride { +class _$ExampleFamilyFamilyOverride implements FamilyOverride { _$ExampleFamilyFamilyOverride(this.overriddenFamily, this.create); final int Function(ExampleFamilyRef ref) create; diff --git a/packages/riverpod_lint_flutter_test/test/lints/avoid_build_context_in_providers.g.dart b/packages/riverpod_lint_flutter_test/test/lints/avoid_build_context_in_providers.g.dart index 586f558da..57ff93806 100644 --- a/packages/riverpod_lint_flutter_test/test/lints/avoid_build_context_in_providers.g.dart +++ b/packages/riverpod_lint_flutter_test/test/lints/avoid_build_context_in_providers.g.dart @@ -80,7 +80,7 @@ class FnFamily extends Family { } } -class _$FnFamilyOverride implements FamilyOverride { +class _$FnFamilyOverride implements FamilyOverride { _$FnFamilyOverride(this.overriddenFamily, this.create); final int Function(FnRef ref) create; @@ -279,7 +279,7 @@ class MyNotifierFamily extends Family { } } -class _$MyNotifierFamilyOverride implements FamilyOverride { +class _$MyNotifierFamilyOverride implements FamilyOverride { _$MyNotifierFamilyOverride(this.overriddenFamily, this.create); final MyNotifier Function() create; diff --git a/packages/riverpod_lint_flutter_test/test/lints/avoid_public_notifier_properties.g.dart b/packages/riverpod_lint_flutter_test/test/lints/avoid_public_notifier_properties.g.dart index ec169870d..c940d274a 100644 --- a/packages/riverpod_lint_flutter_test/test/lints/avoid_public_notifier_properties.g.dart +++ b/packages/riverpod_lint_flutter_test/test/lints/avoid_public_notifier_properties.g.dart @@ -85,7 +85,7 @@ class GeneratedNotifierFamily extends Family { } } -class _$GeneratedNotifierFamilyOverride implements FamilyOverride { +class _$GeneratedNotifierFamilyOverride implements FamilyOverride { _$GeneratedNotifierFamilyOverride(this.overriddenFamily, this.create); final GeneratedNotifier Function() create; diff --git a/packages/riverpod_lint_flutter_test/test/lints/dependencies.g.dart b/packages/riverpod_lint_flutter_test/test/lints/dependencies.g.dart index 2f4e1167b..0c6d35d4d 100644 --- a/packages/riverpod_lint_flutter_test/test/lints/dependencies.g.dart +++ b/packages/riverpod_lint_flutter_test/test/lints/dependencies.g.dart @@ -461,7 +461,7 @@ class FamilyDepFamily extends Family { } } -class _$FamilyDepFamilyOverride implements FamilyOverride { +class _$FamilyDepFamilyOverride implements FamilyOverride { _$FamilyDepFamilyOverride(this.overriddenFamily, this.create); final int Function(FamilyDepRef ref) create; @@ -635,7 +635,7 @@ class FamilyDep2Family extends Family { } } -class _$FamilyDep2FamilyOverride implements FamilyOverride { +class _$FamilyDep2FamilyOverride implements FamilyOverride { _$FamilyDep2FamilyOverride(this.overriddenFamily, this.create); final int Function(FamilyDep2Ref ref) create; diff --git a/packages/riverpod_lint_flutter_test/test/lints/functional_ref/functional_ref.g.dart b/packages/riverpod_lint_flutter_test/test/lints/functional_ref/functional_ref.g.dart index 57b6200ab..d224137fc 100644 --- a/packages/riverpod_lint_flutter_test/test/lints/functional_ref/functional_ref.g.dart +++ b/packages/riverpod_lint_flutter_test/test/lints/functional_ref/functional_ref.g.dart @@ -69,6 +69,20 @@ class GenericsFamily extends Family { /// See also [generics]. const GenericsFamily(); + static const Iterable? _dependencies = null; + + static const Iterable? _allTransitiveDependencies = null; + + @override + Iterable? get dependencies => _dependencies; + + @override + Iterable? get allTransitiveDependencies => + _allTransitiveDependencies; + + @override + String? get name => r'genericsProvider'; + /// See also [generics]. GenericsProvider call() { return GenericsProvider(); @@ -82,19 +96,27 @@ class GenericsFamily extends Family { return call(); } - static const Iterable? _dependencies = null; + /// Enables overriding the behavior of this provider, no matter the parameters. + Override overrideWith( + int Function(GenericsRef ref) create) { + return _$GenericsFamilyOverride(this, create); + } +} - @override - Iterable? get dependencies => _dependencies; +class _$GenericsFamilyOverride implements FamilyOverride { + _$GenericsFamilyOverride(this.overriddenFamily, this.create); - static const Iterable? _allTransitiveDependencies = null; + final int Function(GenericsRef ref) create; @override - Iterable? get allTransitiveDependencies => - _allTransitiveDependencies; + final GenericsFamily overriddenFamily; @override - String? get name => r'genericsProvider'; + GenericsProvider getProviderOverride( + covariant GenericsProvider provider, + ) { + return provider._copyWith(create); + } } /// See also [generics]. @@ -116,7 +138,7 @@ class GenericsProvider extends AutoDisposeProvider { ); GenericsProvider._internal( - super._createNotifier, { + super.create, { required super.name, required super.dependencies, required super.allTransitiveDependencies, @@ -126,7 +148,7 @@ class GenericsProvider extends AutoDisposeProvider { @override Override overrideWith( - int Function(GenericsRef provider) create, + int Function(GenericsRef ref) create, ) { return ProviderOverride( origin: this, @@ -151,6 +173,19 @@ class GenericsProvider extends AutoDisposeProvider { return _GenericsProviderElement(this); } + GenericsProvider _copyWith( + int Function(GenericsRef ref) create, + ) { + return GenericsProvider._internal( + (ref) => create(ref as GenericsRef), + name: name, + dependencies: dependencies, + allTransitiveDependencies: allTransitiveDependencies, + debugGetCreateSourceHash: debugGetCreateSourceHash, + from: from, + ); + } + @override bool operator ==(Object other) { return other is GenericsProvider && other.runtimeType == runtimeType; @@ -184,6 +219,20 @@ class NoGenericsFamily extends Family { /// See also [noGenerics]. const NoGenericsFamily(); + static const Iterable? _dependencies = null; + + static const Iterable? _allTransitiveDependencies = null; + + @override + Iterable? get dependencies => _dependencies; + + @override + Iterable? get allTransitiveDependencies => + _allTransitiveDependencies; + + @override + String? get name => r'noGenericsProvider'; + /// See also [noGenerics]. NoGenericsProvider call() { return NoGenericsProvider(); @@ -197,19 +246,27 @@ class NoGenericsFamily extends Family { return call(); } - static const Iterable? _dependencies = null; + /// Enables overriding the behavior of this provider, no matter the parameters. + Override overrideWith( + int Function(NoGenericsRef ref) create) { + return _$NoGenericsFamilyOverride(this, create); + } +} - @override - Iterable? get dependencies => _dependencies; +class _$NoGenericsFamilyOverride implements FamilyOverride { + _$NoGenericsFamilyOverride(this.overriddenFamily, this.create); - static const Iterable? _allTransitiveDependencies = null; + final int Function(NoGenericsRef ref) create; @override - Iterable? get allTransitiveDependencies => - _allTransitiveDependencies; + final NoGenericsFamily overriddenFamily; @override - String? get name => r'noGenericsProvider'; + NoGenericsProvider getProviderOverride( + covariant NoGenericsProvider provider, + ) { + return provider._copyWith(create); + } } /// See also [noGenerics]. @@ -232,7 +289,7 @@ class NoGenericsProvider extends AutoDisposeProvider { ); NoGenericsProvider._internal( - super._createNotifier, { + super.create, { required super.name, required super.dependencies, required super.allTransitiveDependencies, @@ -242,7 +299,7 @@ class NoGenericsProvider extends AutoDisposeProvider { @override Override overrideWith( - int Function(NoGenericsRef provider) create, + int Function(NoGenericsRef ref) create, ) { return ProviderOverride( origin: this, @@ -267,6 +324,19 @@ class NoGenericsProvider extends AutoDisposeProvider { return _NoGenericsProviderElement(this); } + NoGenericsProvider _copyWith( + int Function(NoGenericsRef ref) create, + ) { + return NoGenericsProvider._internal( + (ref) => create(ref as NoGenericsRef), + name: name, + dependencies: dependencies, + allTransitiveDependencies: allTransitiveDependencies, + debugGetCreateSourceHash: debugGetCreateSourceHash, + from: from, + ); + } + @override bool operator ==(Object other) { return other is NoGenericsProvider && other.runtimeType == runtimeType; @@ -300,6 +370,20 @@ class MissingGenericsFamily extends Family { /// See also [missingGenerics]. const MissingGenericsFamily(); + static const Iterable? _dependencies = null; + + static const Iterable? _allTransitiveDependencies = null; + + @override + Iterable? get dependencies => _dependencies; + + @override + Iterable? get allTransitiveDependencies => + _allTransitiveDependencies; + + @override + String? get name => r'missingGenericsProvider'; + /// See also [missingGenerics]. MissingGenericsProvider call() { return MissingGenericsProvider(); @@ -313,19 +397,26 @@ class MissingGenericsFamily extends Family { return call(); } - static const Iterable? _dependencies = null; + /// Enables overriding the behavior of this provider, no matter the parameters. + Override overrideWith(int Function(MissingGenericsRef ref) create) { + return _$MissingGenericsFamilyOverride(this, create); + } +} - @override - Iterable? get dependencies => _dependencies; +class _$MissingGenericsFamilyOverride implements FamilyOverride { + _$MissingGenericsFamilyOverride(this.overriddenFamily, this.create); - static const Iterable? _allTransitiveDependencies = null; + final int Function(MissingGenericsRef ref) create; @override - Iterable? get allTransitiveDependencies => - _allTransitiveDependencies; + final MissingGenericsFamily overriddenFamily; @override - String? get name => r'missingGenericsProvider'; + MissingGenericsProvider getProviderOverride( + covariant MissingGenericsProvider provider, + ) { + return provider._copyWith(create); + } } /// See also [missingGenerics]. @@ -348,7 +439,7 @@ class MissingGenericsProvider extends AutoDisposeProvider { ); MissingGenericsProvider._internal( - super._createNotifier, { + super.create, { required super.name, required super.dependencies, required super.allTransitiveDependencies, @@ -358,7 +449,7 @@ class MissingGenericsProvider extends AutoDisposeProvider { @override Override overrideWith( - int Function(MissingGenericsRef provider) create, + int Function(MissingGenericsRef ref) create, ) { return ProviderOverride( origin: this, @@ -383,6 +474,19 @@ class MissingGenericsProvider extends AutoDisposeProvider { return _MissingGenericsProviderElement(this); } + MissingGenericsProvider _copyWith( + int Function(MissingGenericsRef ref) create, + ) { + return MissingGenericsProvider._internal( + (ref) => create(ref as MissingGenericsRef), + name: name, + dependencies: dependencies, + allTransitiveDependencies: allTransitiveDependencies, + debugGetCreateSourceHash: debugGetCreateSourceHash, + from: from, + ); + } + @override bool operator ==(Object other) { return other is MissingGenericsProvider && other.runtimeType == runtimeType; @@ -416,6 +520,20 @@ class WrongOrderFamily extends Family { /// See also [wrongOrder]. const WrongOrderFamily(); + static const Iterable? _dependencies = null; + + static const Iterable? _allTransitiveDependencies = null; + + @override + Iterable? get dependencies => _dependencies; + + @override + Iterable? get allTransitiveDependencies => + _allTransitiveDependencies; + + @override + String? get name => r'wrongOrderProvider'; + /// See also [wrongOrder]. WrongOrderProvider call() { return WrongOrderProvider(); @@ -429,19 +547,26 @@ class WrongOrderFamily extends Family { return call(); } - static const Iterable? _dependencies = null; + /// Enables overriding the behavior of this provider, no matter the parameters. + Override overrideWith(int Function(WrongOrderRef ref) create) { + return _$WrongOrderFamilyOverride(this, create); + } +} - @override - Iterable? get dependencies => _dependencies; +class _$WrongOrderFamilyOverride implements FamilyOverride { + _$WrongOrderFamilyOverride(this.overriddenFamily, this.create); - static const Iterable? _allTransitiveDependencies = null; + final int Function(WrongOrderRef ref) create; @override - Iterable? get allTransitiveDependencies => - _allTransitiveDependencies; + final WrongOrderFamily overriddenFamily; @override - String? get name => r'wrongOrderProvider'; + WrongOrderProvider getProviderOverride( + covariant WrongOrderProvider provider, + ) { + return provider._copyWith(create); + } } /// See also [wrongOrder]. @@ -464,7 +589,7 @@ class WrongOrderProvider extends AutoDisposeProvider { ); WrongOrderProvider._internal( - super._createNotifier, { + super.create, { required super.name, required super.dependencies, required super.allTransitiveDependencies, @@ -474,7 +599,7 @@ class WrongOrderProvider extends AutoDisposeProvider { @override Override overrideWith( - int Function(WrongOrderRef provider) create, + int Function(WrongOrderRef ref) create, ) { return ProviderOverride( origin: this, @@ -499,6 +624,19 @@ class WrongOrderProvider extends AutoDisposeProvider { return _WrongOrderProviderElement(this); } + WrongOrderProvider _copyWith( + int Function(WrongOrderRef ref) create, + ) { + return WrongOrderProvider._internal( + (ref) => create(ref as WrongOrderRef), + name: name, + dependencies: dependencies, + allTransitiveDependencies: allTransitiveDependencies, + debugGetCreateSourceHash: debugGetCreateSourceHash, + from: from, + ); + } + @override bool operator ==(Object other) { return other is WrongOrderProvider && other.runtimeType == runtimeType; diff --git a/packages/riverpod_lint_flutter_test/test/lints/notifier_extends/notifier_extends.g.dart b/packages/riverpod_lint_flutter_test/test/lints/notifier_extends/notifier_extends.g.dart index 151d26616..8bfc3a4aa 100644 --- a/packages/riverpod_lint_flutter_test/test/lints/notifier_extends/notifier_extends.g.dart +++ b/packages/riverpod_lint_flutter_test/test/lints/notifier_extends/notifier_extends.g.dart @@ -102,6 +102,20 @@ class GenericsFamily extends Family { /// See also [Generics]. const GenericsFamily(); + static const Iterable? _dependencies = null; + + static const Iterable? _allTransitiveDependencies = null; + + @override + Iterable? get dependencies => _dependencies; + + @override + Iterable? get allTransitiveDependencies => + _allTransitiveDependencies; + + @override + String? get name => r'genericsProvider'; + /// See also [Generics]. GenericsProvider call() { return GenericsProvider(); @@ -115,19 +129,26 @@ class GenericsFamily extends Family { return call(); } - static const Iterable? _dependencies = null; + /// Enables overriding the behavior of this provider, no matter the parameters. + Override overrideWith(Generics Function() create) { + return _$GenericsFamilyOverride(this, create); + } +} - @override - Iterable? get dependencies => _dependencies; +class _$GenericsFamilyOverride implements FamilyOverride { + _$GenericsFamilyOverride(this.overriddenFamily, this.create); - static const Iterable? _allTransitiveDependencies = null; + final Generics Function() create; @override - Iterable? get allTransitiveDependencies => - _allTransitiveDependencies; + final GenericsFamily overriddenFamily; @override - String? get name => r'genericsProvider'; + GenericsProvider getProviderOverride( + covariant GenericsProvider provider, + ) { + return provider._copyWith(create); + } } /// See also [Generics]. @@ -148,7 +169,7 @@ class GenericsProvider ); GenericsProvider._internal( - super._createNotifier, { + super.create, { required super.name, required super.dependencies, required super.allTransitiveDependencies, @@ -188,6 +209,19 @@ class GenericsProvider return _GenericsProviderElement(this); } + GenericsProvider _copyWith( + Generics Function() create, + ) { + return GenericsProvider._internal( + () => create(), + name: name, + dependencies: dependencies, + allTransitiveDependencies: allTransitiveDependencies, + debugGetCreateSourceHash: debugGetCreateSourceHash, + from: from, + ); + } + @override bool operator ==(Object other) { return other is GenericsProvider && other.runtimeType == runtimeType; @@ -227,6 +261,20 @@ class NoGenericsFamily extends Family { /// See also [NoGenerics]. const NoGenericsFamily(); + static const Iterable? _dependencies = null; + + static const Iterable? _allTransitiveDependencies = null; + + @override + Iterable? get dependencies => _dependencies; + + @override + Iterable? get allTransitiveDependencies => + _allTransitiveDependencies; + + @override + String? get name => r'noGenericsProvider'; + /// See also [NoGenerics]. NoGenericsProvider call() { return NoGenericsProvider(); @@ -240,19 +288,26 @@ class NoGenericsFamily extends Family { return call(); } - static const Iterable? _dependencies = null; + /// Enables overriding the behavior of this provider, no matter the parameters. + Override overrideWith(NoGenerics Function() create) { + return _$NoGenericsFamilyOverride(this, create); + } +} - @override - Iterable? get dependencies => _dependencies; +class _$NoGenericsFamilyOverride implements FamilyOverride { + _$NoGenericsFamilyOverride(this.overriddenFamily, this.create); - static const Iterable? _allTransitiveDependencies = null; + final NoGenerics Function() create; @override - Iterable? get allTransitiveDependencies => - _allTransitiveDependencies; + final NoGenericsFamily overriddenFamily; @override - String? get name => r'noGenericsProvider'; + NoGenericsProvider getProviderOverride( + covariant NoGenericsProvider provider, + ) { + return provider._copyWith(create); + } } /// See also [NoGenerics]. @@ -274,7 +329,7 @@ class NoGenericsProvider ); NoGenericsProvider._internal( - super._createNotifier, { + super.create, { required super.name, required super.dependencies, required super.allTransitiveDependencies, @@ -314,6 +369,19 @@ class NoGenericsProvider return _NoGenericsProviderElement(this); } + NoGenericsProvider _copyWith( + NoGenerics Function() create, + ) { + return NoGenericsProvider._internal( + () => create(), + name: name, + dependencies: dependencies, + allTransitiveDependencies: allTransitiveDependencies, + debugGetCreateSourceHash: debugGetCreateSourceHash, + from: from, + ); + } + @override bool operator ==(Object other) { return other is NoGenericsProvider && other.runtimeType == runtimeType; @@ -353,6 +421,20 @@ class MissingGenericsFamily extends Family { /// See also [MissingGenerics]. const MissingGenericsFamily(); + static const Iterable? _dependencies = null; + + static const Iterable? _allTransitiveDependencies = null; + + @override + Iterable? get dependencies => _dependencies; + + @override + Iterable? get allTransitiveDependencies => + _allTransitiveDependencies; + + @override + String? get name => r'missingGenericsProvider'; + /// See also [MissingGenerics]. MissingGenericsProvider call() { return MissingGenericsProvider(); @@ -366,19 +448,26 @@ class MissingGenericsFamily extends Family { return call(); } - static const Iterable? _dependencies = null; + /// Enables overriding the behavior of this provider, no matter the parameters. + Override overrideWith(MissingGenerics Function() create) { + return _$MissingGenericsFamilyOverride(this, create); + } +} - @override - Iterable? get dependencies => _dependencies; +class _$MissingGenericsFamilyOverride implements FamilyOverride { + _$MissingGenericsFamilyOverride(this.overriddenFamily, this.create); - static const Iterable? _allTransitiveDependencies = null; + final MissingGenerics Function() create; @override - Iterable? get allTransitiveDependencies => - _allTransitiveDependencies; + final MissingGenericsFamily overriddenFamily; @override - String? get name => r'missingGenericsProvider'; + MissingGenericsProvider getProviderOverride( + covariant MissingGenericsProvider provider, + ) { + return provider._copyWith(create); + } } /// See also [MissingGenerics]. @@ -400,7 +489,7 @@ class MissingGenericsProvider ); MissingGenericsProvider._internal( - super._createNotifier, { + super.create, { required super.name, required super.dependencies, required super.allTransitiveDependencies, @@ -441,6 +530,19 @@ class MissingGenericsProvider return _MissingGenericsProviderElement(this); } + MissingGenericsProvider _copyWith( + MissingGenerics Function() create, + ) { + return MissingGenericsProvider._internal( + () => create(), + name: name, + dependencies: dependencies, + allTransitiveDependencies: allTransitiveDependencies, + debugGetCreateSourceHash: debugGetCreateSourceHash, + from: from, + ); + } + @override bool operator ==(Object other) { return other is MissingGenericsProvider && other.runtimeType == runtimeType; @@ -479,6 +581,20 @@ class WrongOrderFamily extends Family { /// See also [WrongOrder]. const WrongOrderFamily(); + static const Iterable? _dependencies = null; + + static const Iterable? _allTransitiveDependencies = null; + + @override + Iterable? get dependencies => _dependencies; + + @override + Iterable? get allTransitiveDependencies => + _allTransitiveDependencies; + + @override + String? get name => r'wrongOrderProvider'; + /// See also [WrongOrder]. WrongOrderProvider call() { return WrongOrderProvider(); @@ -492,19 +608,26 @@ class WrongOrderFamily extends Family { return call(); } - static const Iterable? _dependencies = null; + /// Enables overriding the behavior of this provider, no matter the parameters. + Override overrideWith(WrongOrder Function() create) { + return _$WrongOrderFamilyOverride(this, create); + } +} - @override - Iterable? get dependencies => _dependencies; +class _$WrongOrderFamilyOverride implements FamilyOverride { + _$WrongOrderFamilyOverride(this.overriddenFamily, this.create); - static const Iterable? _allTransitiveDependencies = null; + final WrongOrder Function() create; @override - Iterable? get allTransitiveDependencies => - _allTransitiveDependencies; + final WrongOrderFamily overriddenFamily; @override - String? get name => r'wrongOrderProvider'; + WrongOrderProvider getProviderOverride( + covariant WrongOrderProvider provider, + ) { + return provider._copyWith(create); + } } /// See also [WrongOrder]. @@ -526,7 +649,7 @@ class WrongOrderProvider ); WrongOrderProvider._internal( - super._createNotifier, { + super.create, { required super.name, required super.dependencies, required super.allTransitiveDependencies, @@ -566,6 +689,19 @@ class WrongOrderProvider return _WrongOrderProviderElement(this); } + WrongOrderProvider _copyWith( + WrongOrder Function() create, + ) { + return WrongOrderProvider._internal( + () => create(), + name: name, + dependencies: dependencies, + allTransitiveDependencies: allTransitiveDependencies, + debugGetCreateSourceHash: debugGetCreateSourceHash, + from: from, + ); + } + @override bool operator ==(Object other) { return other is WrongOrderProvider && other.runtimeType == runtimeType; diff --git a/packages/riverpod_lint_flutter_test/test/lints/protected_notifier_properties.g.dart b/packages/riverpod_lint_flutter_test/test/lints/protected_notifier_properties.g.dart index 0615d6811..7c9fb644a 100644 --- a/packages/riverpod_lint_flutter_test/test/lints/protected_notifier_properties.g.dart +++ b/packages/riverpod_lint_flutter_test/test/lints/protected_notifier_properties.g.dart @@ -113,7 +113,7 @@ class A3Family extends Family { } } -class _$A3FamilyOverride implements FamilyOverride { +class _$A3FamilyOverride implements FamilyOverride { _$A3FamilyOverride(this.overriddenFamily, this.create); final A3 Function() create; @@ -291,7 +291,7 @@ class A4Family extends Family { } } -class _$A4FamilyOverride implements FamilyOverride { +class _$A4FamilyOverride implements FamilyOverride { _$A4FamilyOverride(this.overriddenFamily, this.create); final A4 Function() create; @@ -468,7 +468,7 @@ class A5Family extends Family { } } -class _$A5FamilyOverride implements FamilyOverride> { +class _$A5FamilyOverride implements FamilyOverride { _$A5FamilyOverride(this.overriddenFamily, this.create); final A5 Function() create; @@ -646,7 +646,7 @@ class A6Family extends Family { } } -class _$A6FamilyOverride implements FamilyOverride> { +class _$A6FamilyOverride implements FamilyOverride { _$A6FamilyOverride(this.overriddenFamily, this.create); final A6 Function() create; @@ -824,7 +824,7 @@ class A7Family extends Family { } } -class _$A7FamilyOverride implements FamilyOverride> { +class _$A7FamilyOverride implements FamilyOverride { _$A7FamilyOverride(this.overriddenFamily, this.create); final A7 Function() create; @@ -1002,7 +1002,7 @@ class A8Family extends Family { } } -class _$A8FamilyOverride implements FamilyOverride> { +class _$A8FamilyOverride implements FamilyOverride { _$A8FamilyOverride(this.overriddenFamily, this.create); final A8 Function() create; diff --git a/packages/riverpod_lint_flutter_test/test/lints/provider_parameters.g.dart b/packages/riverpod_lint_flutter_test/test/lints/provider_parameters.g.dart index 9b960dd49..e47e0ce94 100644 --- a/packages/riverpod_lint_flutter_test/test/lints/provider_parameters.g.dart +++ b/packages/riverpod_lint_flutter_test/test/lints/provider_parameters.g.dart @@ -77,7 +77,7 @@ class GeneratorFamily extends Family { } } -class _$GeneratorFamilyOverride implements FamilyOverride { +class _$GeneratorFamilyOverride implements FamilyOverride { _$GeneratorFamilyOverride(this.overriddenFamily, this.create); final int Function(GeneratorRef ref) create; diff --git a/website/docs/concepts/about_codegen/main.g.dart b/website/docs/concepts/about_codegen/main.g.dart index 0a2446f97..370c04d0a 100644 --- a/website/docs/concepts/about_codegen/main.g.dart +++ b/website/docs/concepts/about_codegen/main.g.dart @@ -79,7 +79,7 @@ class FetchUserFamily extends Family { } } -class _$FetchUserFamilyOverride implements FamilyOverride> { +class _$FetchUserFamilyOverride implements FamilyOverride { _$FetchUserFamilyOverride(this.overriddenFamily, this.create); final FutureOr Function(FetchUserRef ref) create; diff --git a/website/docs/concepts/about_codegen/provider_type/family.g.dart b/website/docs/concepts/about_codegen/provider_type/family.g.dart index b73608c0b..fe7456f0d 100644 --- a/website/docs/concepts/about_codegen/provider_type/family.g.dart +++ b/website/docs/concepts/about_codegen/provider_type/family.g.dart @@ -79,7 +79,7 @@ class ExampleFamily extends Family { } } -class _$ExampleFamilyOverride implements FamilyOverride { +class _$ExampleFamilyOverride implements FamilyOverride { _$ExampleFamilyOverride(this.overriddenFamily, this.create); final String Function(ExampleRef ref) create; diff --git a/website/docs/concepts/about_codegen/provider_type/family_class.g.dart b/website/docs/concepts/about_codegen/provider_type/family_class.g.dart index ebabfd15f..1108d93c1 100644 --- a/website/docs/concepts/about_codegen/provider_type/family_class.g.dart +++ b/website/docs/concepts/about_codegen/provider_type/family_class.g.dart @@ -92,7 +92,7 @@ class ExampleFamily extends Family { } } -class _$ExampleFamilyOverride implements FamilyOverride { +class _$ExampleFamilyOverride implements FamilyOverride { _$ExampleFamilyOverride(this.overriddenFamily, this.create); final Example Function() create; diff --git a/website/docs/concepts/about_codegen/provider_type/family_fn.g.dart b/website/docs/concepts/about_codegen/provider_type/family_fn.g.dart index 7fc2c43d1..a72fa27de 100644 --- a/website/docs/concepts/about_codegen/provider_type/family_fn.g.dart +++ b/website/docs/concepts/about_codegen/provider_type/family_fn.g.dart @@ -82,7 +82,7 @@ class ExampleFamily extends Family { } } -class _$ExampleFamilyOverride implements FamilyOverride { +class _$ExampleFamilyOverride implements FamilyOverride { _$ExampleFamilyOverride(this.overriddenFamily, this.create); final String Function(ExampleRef ref) create; diff --git a/website/docs/essentials/auto_dispose/invalidate_family_example/codegen.g.dart b/website/docs/essentials/auto_dispose/invalidate_family_example/codegen.g.dart index 04810e0e7..410c48677 100644 --- a/website/docs/essentials/auto_dispose/invalidate_family_example/codegen.g.dart +++ b/website/docs/essentials/auto_dispose/invalidate_family_example/codegen.g.dart @@ -36,7 +36,7 @@ class _SystemHash { const labelProvider = LabelFamily(); /// See also [label]. -class LabelFamily extends Family { +class LabelFamily extends Family { /// See also [label]. const LabelFamily(); @@ -79,7 +79,7 @@ class LabelFamily extends Family { } } -class _$LabelFamilyOverride implements FamilyOverride { +class _$LabelFamilyOverride implements FamilyOverride { _$LabelFamilyOverride(this.overriddenFamily, this.create); final String Function(LabelRef ref) create; diff --git a/website/docs/essentials/passing_args/codegen/family.g.dart b/website/docs/essentials/passing_args/codegen/family.g.dart index 46a74719b..c88a2122c 100644 --- a/website/docs/essentials/passing_args/codegen/family.g.dart +++ b/website/docs/essentials/passing_args/codegen/family.g.dart @@ -79,7 +79,7 @@ class ActivityFamily extends Family { } } -class _$ActivityFamilyOverride implements FamilyOverride> { +class _$ActivityFamilyOverride implements FamilyOverride { _$ActivityFamilyOverride(this.overriddenFamily, this.create); final FutureOr Function(ActivityRef ref) create; diff --git a/website/docs/from_provider/family/family.g.dart b/website/docs/from_provider/family/family.g.dart index e7793230e..3e39394a5 100644 --- a/website/docs/from_provider/family/family.g.dart +++ b/website/docs/from_provider/family/family.g.dart @@ -82,7 +82,7 @@ class RandomFamily extends Family { } } -class _$RandomFamilyOverride implements FamilyOverride { +class _$RandomFamilyOverride implements FamilyOverride { _$RandomFamilyOverride(this.overriddenFamily, this.create); final int Function(RandomRef ref) create; diff --git a/website/docs/introduction/why_riverpod/codegen.g.dart b/website/docs/introduction/why_riverpod/codegen.g.dart index c2c6ead3c..8f63ec36f 100644 --- a/website/docs/introduction/why_riverpod/codegen.g.dart +++ b/website/docs/introduction/why_riverpod/codegen.g.dart @@ -83,8 +83,7 @@ class FetchPackagesFamily extends Family { } } -class _$FetchPackagesFamilyOverride - implements FamilyOverride>> { +class _$FetchPackagesFamilyOverride implements FamilyOverride { _$FetchPackagesFamilyOverride(this.overriddenFamily, this.create); final FutureOr> Function(FetchPackagesRef ref) create; diff --git a/website/docs/migration/from_state_notifier/family_and_dispose/family_and_dispose.g.dart b/website/docs/migration/from_state_notifier/family_and_dispose/family_and_dispose.g.dart index 1ae77f4ae..cbcfb779b 100644 --- a/website/docs/migration/from_state_notifier/family_and_dispose/family_and_dispose.g.dart +++ b/website/docs/migration/from_state_notifier/family_and_dispose/family_and_dispose.g.dart @@ -89,8 +89,7 @@ class BugsEncounteredNotifierFamily extends Family { } } -class _$BugsEncounteredNotifierFamilyOverride - implements FamilyOverride> { +class _$BugsEncounteredNotifierFamilyOverride implements FamilyOverride { _$BugsEncounteredNotifierFamilyOverride(this.overriddenFamily, this.create); final BugsEncounteredNotifier Function() create; diff --git a/website/i18n/fr/docusaurus-plugin-content-docs/current/about_codegen/main.g.dart b/website/i18n/fr/docusaurus-plugin-content-docs/current/about_codegen/main.g.dart index 0a2446f97..370c04d0a 100644 --- a/website/i18n/fr/docusaurus-plugin-content-docs/current/about_codegen/main.g.dart +++ b/website/i18n/fr/docusaurus-plugin-content-docs/current/about_codegen/main.g.dart @@ -79,7 +79,7 @@ class FetchUserFamily extends Family { } } -class _$FetchUserFamilyOverride implements FamilyOverride> { +class _$FetchUserFamilyOverride implements FamilyOverride { _$FetchUserFamilyOverride(this.overriddenFamily, this.create); final FutureOr Function(FetchUserRef ref) create; diff --git a/website/i18n/ja/docusaurus-plugin-content-docs/current/about_codegen/main.g.dart b/website/i18n/ja/docusaurus-plugin-content-docs/current/about_codegen/main.g.dart index 0a2446f97..370c04d0a 100644 --- a/website/i18n/ja/docusaurus-plugin-content-docs/current/about_codegen/main.g.dart +++ b/website/i18n/ja/docusaurus-plugin-content-docs/current/about_codegen/main.g.dart @@ -79,7 +79,7 @@ class FetchUserFamily extends Family { } } -class _$FetchUserFamilyOverride implements FamilyOverride> { +class _$FetchUserFamilyOverride implements FamilyOverride { _$FetchUserFamilyOverride(this.overriddenFamily, this.create); final FutureOr Function(FetchUserRef ref) create; diff --git a/website/i18n/ko/docusaurus-plugin-content-docs/current/about_codegen/main.g.dart b/website/i18n/ko/docusaurus-plugin-content-docs/current/about_codegen/main.g.dart index 0a2446f97..370c04d0a 100644 --- a/website/i18n/ko/docusaurus-plugin-content-docs/current/about_codegen/main.g.dart +++ b/website/i18n/ko/docusaurus-plugin-content-docs/current/about_codegen/main.g.dart @@ -79,7 +79,7 @@ class FetchUserFamily extends Family { } } -class _$FetchUserFamilyOverride implements FamilyOverride> { +class _$FetchUserFamilyOverride implements FamilyOverride { _$FetchUserFamilyOverride(this.overriddenFamily, this.create); final FutureOr Function(FetchUserRef ref) create; diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/about_codegen/main.g.dart b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/about_codegen/main.g.dart index 0a2446f97..370c04d0a 100644 --- a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/about_codegen/main.g.dart +++ b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/about_codegen/main.g.dart @@ -79,7 +79,7 @@ class FetchUserFamily extends Family { } } -class _$FetchUserFamilyOverride implements FamilyOverride> { +class _$FetchUserFamilyOverride implements FamilyOverride { _$FetchUserFamilyOverride(this.overriddenFamily, this.create); final FutureOr Function(FetchUserRef ref) create;