Initial commit
This commit is contained in:
175
lib/presentation/plan_editor/plan_editor_controller.g.dart
Normal file
175
lib/presentation/plan_editor/plan_editor_controller.g.dart
Normal file
@@ -0,0 +1,175 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
|
||||
part of 'plan_editor_controller.dart';
|
||||
|
||||
// **************************************************************************
|
||||
// RiverpodGenerator
|
||||
// **************************************************************************
|
||||
|
||||
String _$planEditorControllerHash() =>
|
||||
r'4045493829126f28b3a58695b68ade53519c1412';
|
||||
|
||||
/// Copied from Dart SDK
|
||||
class _SystemHash {
|
||||
_SystemHash._();
|
||||
|
||||
static int combine(int hash, int value) {
|
||||
// ignore: parameter_assignments
|
||||
hash = 0x1fffffff & (hash + value);
|
||||
// ignore: parameter_assignments
|
||||
hash = 0x1fffffff & (hash + ((0x0007ffff & hash) << 10));
|
||||
return hash ^ (hash >> 6);
|
||||
}
|
||||
|
||||
static int finish(int hash) {
|
||||
// ignore: parameter_assignments
|
||||
hash = 0x1fffffff & (hash + ((0x03ffffff & hash) << 3));
|
||||
// ignore: parameter_assignments
|
||||
hash = hash ^ (hash >> 11);
|
||||
return 0x1fffffff & (hash + ((0x00003fff & hash) << 15));
|
||||
}
|
||||
}
|
||||
|
||||
abstract class _$PlanEditorController
|
||||
extends BuildlessAutoDisposeAsyncNotifier<PlanEditorState> {
|
||||
late final String planId;
|
||||
|
||||
FutureOr<PlanEditorState> build(String planId);
|
||||
}
|
||||
|
||||
/// See also [PlanEditorController].
|
||||
@ProviderFor(PlanEditorController)
|
||||
const planEditorControllerProvider = PlanEditorControllerFamily();
|
||||
|
||||
/// See also [PlanEditorController].
|
||||
class PlanEditorControllerFamily extends Family<AsyncValue<PlanEditorState>> {
|
||||
/// See also [PlanEditorController].
|
||||
const PlanEditorControllerFamily();
|
||||
|
||||
/// See also [PlanEditorController].
|
||||
PlanEditorControllerProvider call(String planId) {
|
||||
return PlanEditorControllerProvider(planId);
|
||||
}
|
||||
|
||||
@override
|
||||
PlanEditorControllerProvider getProviderOverride(
|
||||
covariant PlanEditorControllerProvider provider,
|
||||
) {
|
||||
return call(provider.planId);
|
||||
}
|
||||
|
||||
static const Iterable<ProviderOrFamily>? _dependencies = null;
|
||||
|
||||
@override
|
||||
Iterable<ProviderOrFamily>? get dependencies => _dependencies;
|
||||
|
||||
static const Iterable<ProviderOrFamily>? _allTransitiveDependencies = null;
|
||||
|
||||
@override
|
||||
Iterable<ProviderOrFamily>? get allTransitiveDependencies =>
|
||||
_allTransitiveDependencies;
|
||||
|
||||
@override
|
||||
String? get name => r'planEditorControllerProvider';
|
||||
}
|
||||
|
||||
/// See also [PlanEditorController].
|
||||
class PlanEditorControllerProvider
|
||||
extends
|
||||
AutoDisposeAsyncNotifierProviderImpl<
|
||||
PlanEditorController,
|
||||
PlanEditorState
|
||||
> {
|
||||
/// See also [PlanEditorController].
|
||||
PlanEditorControllerProvider(String planId)
|
||||
: this._internal(
|
||||
() => PlanEditorController()..planId = planId,
|
||||
from: planEditorControllerProvider,
|
||||
name: r'planEditorControllerProvider',
|
||||
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||
? null
|
||||
: _$planEditorControllerHash,
|
||||
dependencies: PlanEditorControllerFamily._dependencies,
|
||||
allTransitiveDependencies:
|
||||
PlanEditorControllerFamily._allTransitiveDependencies,
|
||||
planId: planId,
|
||||
);
|
||||
|
||||
PlanEditorControllerProvider._internal(
|
||||
super._createNotifier, {
|
||||
required super.name,
|
||||
required super.dependencies,
|
||||
required super.allTransitiveDependencies,
|
||||
required super.debugGetCreateSourceHash,
|
||||
required super.from,
|
||||
required this.planId,
|
||||
}) : super.internal();
|
||||
|
||||
final String planId;
|
||||
|
||||
@override
|
||||
FutureOr<PlanEditorState> runNotifierBuild(
|
||||
covariant PlanEditorController notifier,
|
||||
) {
|
||||
return notifier.build(planId);
|
||||
}
|
||||
|
||||
@override
|
||||
Override overrideWith(PlanEditorController Function() create) {
|
||||
return ProviderOverride(
|
||||
origin: this,
|
||||
override: PlanEditorControllerProvider._internal(
|
||||
() => create()..planId = planId,
|
||||
from: from,
|
||||
name: null,
|
||||
dependencies: null,
|
||||
allTransitiveDependencies: null,
|
||||
debugGetCreateSourceHash: null,
|
||||
planId: planId,
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
@override
|
||||
AutoDisposeAsyncNotifierProviderElement<PlanEditorController, PlanEditorState>
|
||||
createElement() {
|
||||
return _PlanEditorControllerProviderElement(this);
|
||||
}
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
return other is PlanEditorControllerProvider && other.planId == planId;
|
||||
}
|
||||
|
||||
@override
|
||||
int get hashCode {
|
||||
var hash = _SystemHash.combine(0, runtimeType.hashCode);
|
||||
hash = _SystemHash.combine(hash, planId.hashCode);
|
||||
|
||||
return _SystemHash.finish(hash);
|
||||
}
|
||||
}
|
||||
|
||||
@Deprecated('Will be removed in 3.0. Use Ref instead')
|
||||
// ignore: unused_element
|
||||
mixin PlanEditorControllerRef
|
||||
on AutoDisposeAsyncNotifierProviderRef<PlanEditorState> {
|
||||
/// The parameter `planId` of this provider.
|
||||
String get planId;
|
||||
}
|
||||
|
||||
class _PlanEditorControllerProviderElement
|
||||
extends
|
||||
AutoDisposeAsyncNotifierProviderElement<
|
||||
PlanEditorController,
|
||||
PlanEditorState
|
||||
>
|
||||
with PlanEditorControllerRef {
|
||||
_PlanEditorControllerProviderElement(super.provider);
|
||||
|
||||
@override
|
||||
String get planId => (origin as PlanEditorControllerProvider).planId;
|
||||
}
|
||||
|
||||
// ignore_for_file: type=lint
|
||||
// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package
|
||||
Reference in New Issue
Block a user