374 lines
12 KiB
Dart
374 lines
12 KiB
Dart
|
// coverage:ignore-file
|
||
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||
|
// ignore_for_file: type=lint
|
||
|
// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark
|
||
|
|
||
|
part of 'habit_sammler_model.dart';
|
||
|
|
||
|
// **************************************************************************
|
||
|
// FreezedGenerator
|
||
|
// **************************************************************************
|
||
|
|
||
|
T _$identity<T>(T value) => value;
|
||
|
|
||
|
final _privateConstructorUsedError = UnsupportedError(
|
||
|
'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods');
|
||
|
|
||
|
/// @nodoc
|
||
|
mixin _$HabitHive {
|
||
|
@HiveField(0)
|
||
|
String get name => throw _privateConstructorUsedError;
|
||
|
@HiveField(1)
|
||
|
String get description => throw _privateConstructorUsedError;
|
||
|
@HiveField(2)
|
||
|
int get icon => throw _privateConstructorUsedError;
|
||
|
@HiveField(3)
|
||
|
String get frequency => throw _privateConstructorUsedError;
|
||
|
@HiveField(4)
|
||
|
int? get goal => throw _privateConstructorUsedError;
|
||
|
@HiveField(5)
|
||
|
int get streak => throw _privateConstructorUsedError;
|
||
|
@HiveField(6)
|
||
|
List<int> get onlyOn => throw _privateConstructorUsedError;
|
||
|
@HiveField(7)
|
||
|
List<DateTime> get doneOn => throw _privateConstructorUsedError;
|
||
|
@HiveField(8)
|
||
|
DateTime get createdAt => throw _privateConstructorUsedError;
|
||
|
@HiveField(9)
|
||
|
DateTime get updatedAt => throw _privateConstructorUsedError;
|
||
|
|
||
|
@JsonKey(ignore: true)
|
||
|
$HabitHiveCopyWith<HabeichHabit> get copyWith =>
|
||
|
throw _privateConstructorUsedError;
|
||
|
}
|
||
|
|
||
|
/// @nodoc
|
||
|
abstract class $HabitHiveCopyWith<$Res> {
|
||
|
factory $HabitHiveCopyWith(HabeichHabit value, $Res Function(HabeichHabit) then) =
|
||
|
_$HabitHiveCopyWithImpl<$Res, HabeichHabit>;
|
||
|
@useResult
|
||
|
$Res call(
|
||
|
{@HiveField(0) String name,
|
||
|
@HiveField(1) String description,
|
||
|
@HiveField(2) int icon,
|
||
|
@HiveField(3) String frequency,
|
||
|
@HiveField(4) int? goal,
|
||
|
@HiveField(5) int streak,
|
||
|
@HiveField(6) List<int> onlyOn,
|
||
|
@HiveField(7) List<DateTime> doneOn,
|
||
|
@HiveField(8) DateTime createdAt,
|
||
|
@HiveField(9) DateTime updatedAt});
|
||
|
}
|
||
|
|
||
|
/// @nodoc
|
||
|
class _$HabitHiveCopyWithImpl<$Res, $Val extends HabeichHabit>
|
||
|
implements $HabitHiveCopyWith<$Res> {
|
||
|
_$HabitHiveCopyWithImpl(this._value, this._then);
|
||
|
|
||
|
// ignore: unused_field
|
||
|
final $Val _value;
|
||
|
// ignore: unused_field
|
||
|
final $Res Function($Val) _then;
|
||
|
|
||
|
@pragma('vm:prefer-inline')
|
||
|
@override
|
||
|
$Res call({
|
||
|
Object? name = null,
|
||
|
Object? description = null,
|
||
|
Object? icon = null,
|
||
|
Object? frequency = null,
|
||
|
Object? goal = freezed,
|
||
|
Object? streak = null,
|
||
|
Object? onlyOn = null,
|
||
|
Object? doneOn = null,
|
||
|
Object? createdAt = null,
|
||
|
Object? updatedAt = null,
|
||
|
}) {
|
||
|
return _then(_value.copyWith(
|
||
|
name: null == name
|
||
|
? _value.name
|
||
|
: name // ignore: cast_nullable_to_non_nullable
|
||
|
as String,
|
||
|
description: null == description
|
||
|
? _value.description
|
||
|
: description // ignore: cast_nullable_to_non_nullable
|
||
|
as String,
|
||
|
icon: null == icon
|
||
|
? _value.icon
|
||
|
: icon // ignore: cast_nullable_to_non_nullable
|
||
|
as int,
|
||
|
frequency: null == frequency
|
||
|
? _value.frequency
|
||
|
: frequency // ignore: cast_nullable_to_non_nullable
|
||
|
as String,
|
||
|
goal: freezed == goal
|
||
|
? _value.goal
|
||
|
: goal // ignore: cast_nullable_to_non_nullable
|
||
|
as int?,
|
||
|
streak: null == streak
|
||
|
? _value.streak
|
||
|
: streak // ignore: cast_nullable_to_non_nullable
|
||
|
as int,
|
||
|
onlyOn: null == onlyOn
|
||
|
? _value.onlyOn
|
||
|
: onlyOn // ignore: cast_nullable_to_non_nullable
|
||
|
as List<int>,
|
||
|
doneOn: null == doneOn
|
||
|
? _value.doneOn
|
||
|
: doneOn // ignore: cast_nullable_to_non_nullable
|
||
|
as List<DateTime>,
|
||
|
createdAt: null == createdAt
|
||
|
? _value.createdAt
|
||
|
: createdAt // ignore: cast_nullable_to_non_nullable
|
||
|
as DateTime,
|
||
|
updatedAt: null == updatedAt
|
||
|
? _value.updatedAt
|
||
|
: updatedAt // ignore: cast_nullable_to_non_nullable
|
||
|
as DateTime,
|
||
|
) as $Val);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/// @nodoc
|
||
|
abstract class _$$_HabitHiveCopyWith<$Res> implements $HabitHiveCopyWith<$Res> {
|
||
|
factory _$$_HabitHiveCopyWith(
|
||
|
_$_HabitHive value, $Res Function(_$_HabitHive) then) =
|
||
|
__$$_HabitHiveCopyWithImpl<$Res>;
|
||
|
@override
|
||
|
@useResult
|
||
|
$Res call(
|
||
|
{@HiveField(0) String name,
|
||
|
@HiveField(1) String description,
|
||
|
@HiveField(2) int icon,
|
||
|
@HiveField(3) String frequency,
|
||
|
@HiveField(4) int? goal,
|
||
|
@HiveField(5) int streak,
|
||
|
@HiveField(6) List<int> onlyOn,
|
||
|
@HiveField(7) List<DateTime> doneOn,
|
||
|
@HiveField(8) DateTime createdAt,
|
||
|
@HiveField(9) DateTime updatedAt});
|
||
|
}
|
||
|
|
||
|
/// @nodoc
|
||
|
class __$$_HabitHiveCopyWithImpl<$Res>
|
||
|
extends _$HabitHiveCopyWithImpl<$Res, _$_HabitHive>
|
||
|
implements _$$_HabitHiveCopyWith<$Res> {
|
||
|
__$$_HabitHiveCopyWithImpl(
|
||
|
_$_HabitHive _value, $Res Function(_$_HabitHive) _then)
|
||
|
: super(_value, _then);
|
||
|
|
||
|
@pragma('vm:prefer-inline')
|
||
|
@override
|
||
|
$Res call({
|
||
|
Object? name = null,
|
||
|
Object? description = null,
|
||
|
Object? icon = null,
|
||
|
Object? frequency = null,
|
||
|
Object? goal = freezed,
|
||
|
Object? streak = null,
|
||
|
Object? onlyOn = null,
|
||
|
Object? doneOn = null,
|
||
|
Object? createdAt = null,
|
||
|
Object? updatedAt = null,
|
||
|
}) {
|
||
|
return _then(_$_HabitHive(
|
||
|
name: null == name
|
||
|
? _value.name
|
||
|
: name // ignore: cast_nullable_to_non_nullable
|
||
|
as String,
|
||
|
description: null == description
|
||
|
? _value.description
|
||
|
: description // ignore: cast_nullable_to_non_nullable
|
||
|
as String,
|
||
|
icon: null == icon
|
||
|
? _value.icon
|
||
|
: icon // ignore: cast_nullable_to_non_nullable
|
||
|
as int,
|
||
|
frequency: null == frequency
|
||
|
? _value.frequency
|
||
|
: frequency // ignore: cast_nullable_to_non_nullable
|
||
|
as String,
|
||
|
goal: freezed == goal
|
||
|
? _value.goal
|
||
|
: goal // ignore: cast_nullable_to_non_nullable
|
||
|
as int?,
|
||
|
streak: null == streak
|
||
|
? _value.streak
|
||
|
: streak // ignore: cast_nullable_to_non_nullable
|
||
|
as int,
|
||
|
onlyOn: null == onlyOn
|
||
|
? _value._onlyOn
|
||
|
: onlyOn // ignore: cast_nullable_to_non_nullable
|
||
|
as List<int>,
|
||
|
doneOn: null == doneOn
|
||
|
? _value._doneOn
|
||
|
: doneOn // ignore: cast_nullable_to_non_nullable
|
||
|
as List<DateTime>,
|
||
|
createdAt: null == createdAt
|
||
|
? _value.createdAt
|
||
|
: createdAt // ignore: cast_nullable_to_non_nullable
|
||
|
as DateTime,
|
||
|
updatedAt: null == updatedAt
|
||
|
? _value.updatedAt
|
||
|
: updatedAt // ignore: cast_nullable_to_non_nullable
|
||
|
as DateTime,
|
||
|
));
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/// @nodoc
|
||
|
|
||
|
class _$_HabitHive implements _HabeichHabit {
|
||
|
const _$_HabitHive(
|
||
|
{@HiveField(0) required this.name,
|
||
|
@HiveField(1) required this.description,
|
||
|
@HiveField(2) required this.icon,
|
||
|
@HiveField(3) required this.frequency,
|
||
|
@HiveField(4) required this.goal,
|
||
|
@HiveField(5) required this.streak,
|
||
|
@HiveField(6) required final List<int> onlyOn,
|
||
|
@HiveField(7) required final List<DateTime> doneOn,
|
||
|
@HiveField(8) required this.createdAt,
|
||
|
@HiveField(9) required this.updatedAt})
|
||
|
: _onlyOn = onlyOn,
|
||
|
_doneOn = doneOn;
|
||
|
|
||
|
@override
|
||
|
@HiveField(0)
|
||
|
final String name;
|
||
|
@override
|
||
|
@HiveField(1)
|
||
|
final String description;
|
||
|
@override
|
||
|
@HiveField(2)
|
||
|
final int icon;
|
||
|
@override
|
||
|
@HiveField(3)
|
||
|
final String frequency;
|
||
|
@override
|
||
|
@HiveField(4)
|
||
|
final int? goal;
|
||
|
@override
|
||
|
@HiveField(5)
|
||
|
final int streak;
|
||
|
final List<int> _onlyOn;
|
||
|
@override
|
||
|
@HiveField(6)
|
||
|
List<int> get onlyOn {
|
||
|
if (_onlyOn is EqualUnmodifiableListView) return _onlyOn;
|
||
|
// ignore: implicit_dynamic_type
|
||
|
return EqualUnmodifiableListView(_onlyOn);
|
||
|
}
|
||
|
|
||
|
final List<DateTime> _doneOn;
|
||
|
@override
|
||
|
@HiveField(7)
|
||
|
List<DateTime> get doneOn {
|
||
|
if (_doneOn is EqualUnmodifiableListView) return _doneOn;
|
||
|
// ignore: implicit_dynamic_type
|
||
|
return EqualUnmodifiableListView(_doneOn);
|
||
|
}
|
||
|
|
||
|
@override
|
||
|
@HiveField(8)
|
||
|
final DateTime createdAt;
|
||
|
@override
|
||
|
@HiveField(9)
|
||
|
final DateTime updatedAt;
|
||
|
|
||
|
@override
|
||
|
String toString() {
|
||
|
return 'HabitHive(name: $name, description: $description, icon: $icon, frequency: $frequency, goal: $goal, streak: $streak, onlyOn: $onlyOn, doneOn: $doneOn, createdAt: $createdAt, updatedAt: $updatedAt)';
|
||
|
}
|
||
|
|
||
|
@override
|
||
|
bool operator ==(dynamic other) {
|
||
|
return identical(this, other) ||
|
||
|
(other.runtimeType == runtimeType &&
|
||
|
other is _$_HabitHive &&
|
||
|
(identical(other.name, name) || other.name == name) &&
|
||
|
(identical(other.description, description) ||
|
||
|
other.description == description) &&
|
||
|
(identical(other.icon, icon) || other.icon == icon) &&
|
||
|
(identical(other.frequency, frequency) ||
|
||
|
other.frequency == frequency) &&
|
||
|
(identical(other.goal, goal) || other.goal == goal) &&
|
||
|
(identical(other.streak, streak) || other.streak == streak) &&
|
||
|
const DeepCollectionEquality().equals(other._onlyOn, _onlyOn) &&
|
||
|
const DeepCollectionEquality().equals(other._doneOn, _doneOn) &&
|
||
|
(identical(other.createdAt, createdAt) ||
|
||
|
other.createdAt == createdAt) &&
|
||
|
(identical(other.updatedAt, updatedAt) ||
|
||
|
other.updatedAt == updatedAt));
|
||
|
}
|
||
|
|
||
|
@override
|
||
|
int get hashCode => Object.hash(
|
||
|
runtimeType,
|
||
|
name,
|
||
|
description,
|
||
|
icon,
|
||
|
frequency,
|
||
|
goal,
|
||
|
streak,
|
||
|
const DeepCollectionEquality().hash(_onlyOn),
|
||
|
const DeepCollectionEquality().hash(_doneOn),
|
||
|
createdAt,
|
||
|
updatedAt);
|
||
|
|
||
|
@JsonKey(ignore: true)
|
||
|
@override
|
||
|
@pragma('vm:prefer-inline')
|
||
|
_$$_HabitHiveCopyWith<_$_HabitHive> get copyWith =>
|
||
|
__$$_HabitHiveCopyWithImpl<_$_HabitHive>(this, _$identity);
|
||
|
}
|
||
|
|
||
|
abstract class _HabeichHabit implements HabeichHabit {
|
||
|
const factory _HabeichHabit(
|
||
|
{@HiveField(0) required final String name,
|
||
|
@HiveField(1) required final String description,
|
||
|
@HiveField(2) required final int icon,
|
||
|
@HiveField(3) required final String frequency,
|
||
|
@HiveField(4) required final int? goal,
|
||
|
@HiveField(5) required final int streak,
|
||
|
@HiveField(6) required final List<int> onlyOn,
|
||
|
@HiveField(7) required final List<DateTime> doneOn,
|
||
|
@HiveField(8) required final DateTime createdAt,
|
||
|
@HiveField(9) required final DateTime updatedAt}) = _$_HabitHive;
|
||
|
|
||
|
@override
|
||
|
@HiveField(0)
|
||
|
String get name;
|
||
|
@override
|
||
|
@HiveField(1)
|
||
|
String get description;
|
||
|
@override
|
||
|
@HiveField(2)
|
||
|
int get icon;
|
||
|
@override
|
||
|
@HiveField(3)
|
||
|
String get frequency;
|
||
|
@override
|
||
|
@HiveField(4)
|
||
|
int? get goal;
|
||
|
@override
|
||
|
@HiveField(5)
|
||
|
int get streak;
|
||
|
@override
|
||
|
@HiveField(6)
|
||
|
List<int> get onlyOn;
|
||
|
@override
|
||
|
@HiveField(7)
|
||
|
List<DateTime> get doneOn;
|
||
|
@override
|
||
|
@HiveField(8)
|
||
|
DateTime get createdAt;
|
||
|
@override
|
||
|
@HiveField(9)
|
||
|
DateTime get updatedAt;
|
||
|
@override
|
||
|
@JsonKey(ignore: true)
|
||
|
_$$_HabitHiveCopyWith<_$_HabitHive> get copyWith =>
|
||
|
throw _privateConstructorUsedError;
|
||
|
}
|