Initial commit

This commit is contained in:
Kazimierz Ciołek
2026-02-19 02:49:29 +01:00
commit 782986a632
148 changed files with 29230 additions and 0 deletions

View File

@@ -0,0 +1,179 @@
// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'workout_session_controller.dart';
// **************************************************************************
// RiverpodGenerator
// **************************************************************************
String _$workoutSessionControllerHash() =>
r'd3f53d72c80963634c6edaeb44aa5b04c9ffba6d';
/// 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 _$WorkoutSessionController
extends BuildlessAutoDisposeAsyncNotifier<WorkoutSessionState> {
late final String planId;
FutureOr<WorkoutSessionState> build(String planId);
}
/// See also [WorkoutSessionController].
@ProviderFor(WorkoutSessionController)
const workoutSessionControllerProvider = WorkoutSessionControllerFamily();
/// See also [WorkoutSessionController].
class WorkoutSessionControllerFamily
extends Family<AsyncValue<WorkoutSessionState>> {
/// See also [WorkoutSessionController].
const WorkoutSessionControllerFamily();
/// See also [WorkoutSessionController].
WorkoutSessionControllerProvider call(String planId) {
return WorkoutSessionControllerProvider(planId);
}
@override
WorkoutSessionControllerProvider getProviderOverride(
covariant WorkoutSessionControllerProvider 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'workoutSessionControllerProvider';
}
/// See also [WorkoutSessionController].
class WorkoutSessionControllerProvider
extends
AutoDisposeAsyncNotifierProviderImpl<
WorkoutSessionController,
WorkoutSessionState
> {
/// See also [WorkoutSessionController].
WorkoutSessionControllerProvider(String planId)
: this._internal(
() => WorkoutSessionController()..planId = planId,
from: workoutSessionControllerProvider,
name: r'workoutSessionControllerProvider',
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
? null
: _$workoutSessionControllerHash,
dependencies: WorkoutSessionControllerFamily._dependencies,
allTransitiveDependencies:
WorkoutSessionControllerFamily._allTransitiveDependencies,
planId: planId,
);
WorkoutSessionControllerProvider._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<WorkoutSessionState> runNotifierBuild(
covariant WorkoutSessionController notifier,
) {
return notifier.build(planId);
}
@override
Override overrideWith(WorkoutSessionController Function() create) {
return ProviderOverride(
origin: this,
override: WorkoutSessionControllerProvider._internal(
() => create()..planId = planId,
from: from,
name: null,
dependencies: null,
allTransitiveDependencies: null,
debugGetCreateSourceHash: null,
planId: planId,
),
);
}
@override
AutoDisposeAsyncNotifierProviderElement<
WorkoutSessionController,
WorkoutSessionState
>
createElement() {
return _WorkoutSessionControllerProviderElement(this);
}
@override
bool operator ==(Object other) {
return other is WorkoutSessionControllerProvider && 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 WorkoutSessionControllerRef
on AutoDisposeAsyncNotifierProviderRef<WorkoutSessionState> {
/// The parameter `planId` of this provider.
String get planId;
}
class _WorkoutSessionControllerProviderElement
extends
AutoDisposeAsyncNotifierProviderElement<
WorkoutSessionController,
WorkoutSessionState
>
with WorkoutSessionControllerRef {
_WorkoutSessionControllerProviderElement(super.provider);
@override
String get planId => (origin as WorkoutSessionControllerProvider).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