Initial (redacted) commit.
This commit is contained in:
commit
655f8a036a
368 changed files with 20949 additions and 0 deletions
502
app/lib/sembast/tasks_list.freezed.dart
Normal file
502
app/lib/sembast/tasks_list.freezed.dart
Normal file
|
@ -0,0 +1,502 @@
|
|||
// 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 'tasks_list.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#adding-getters-and-methods-to-our-models');
|
||||
|
||||
IndividualTodo _$IndividualTodoFromJson(Map<String, dynamic> json) {
|
||||
return _IndividualTodo.fromJson(json);
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
mixin _$IndividualTodo {
|
||||
String get todo => throw _privateConstructorUsedError;
|
||||
bool get isCompleted => throw _privateConstructorUsedError;
|
||||
DateTime get dueDate => throw _privateConstructorUsedError;
|
||||
|
||||
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
||||
@JsonKey(ignore: true)
|
||||
$IndividualTodoCopyWith<IndividualTodo> get copyWith =>
|
||||
throw _privateConstructorUsedError;
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract class $IndividualTodoCopyWith<$Res> {
|
||||
factory $IndividualTodoCopyWith(
|
||||
IndividualTodo value, $Res Function(IndividualTodo) then) =
|
||||
_$IndividualTodoCopyWithImpl<$Res, IndividualTodo>;
|
||||
@useResult
|
||||
$Res call({String todo, bool isCompleted, DateTime dueDate});
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class _$IndividualTodoCopyWithImpl<$Res, $Val extends IndividualTodo>
|
||||
implements $IndividualTodoCopyWith<$Res> {
|
||||
_$IndividualTodoCopyWithImpl(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? todo = null,
|
||||
Object? isCompleted = null,
|
||||
Object? dueDate = null,
|
||||
}) {
|
||||
return _then(_value.copyWith(
|
||||
todo: null == todo
|
||||
? _value.todo
|
||||
: todo // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
isCompleted: null == isCompleted
|
||||
? _value.isCompleted
|
||||
: isCompleted // ignore: cast_nullable_to_non_nullable
|
||||
as bool,
|
||||
dueDate: null == dueDate
|
||||
? _value.dueDate
|
||||
: dueDate // ignore: cast_nullable_to_non_nullable
|
||||
as DateTime,
|
||||
) as $Val);
|
||||
}
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract class _$$IndividualTodoImplCopyWith<$Res>
|
||||
implements $IndividualTodoCopyWith<$Res> {
|
||||
factory _$$IndividualTodoImplCopyWith(_$IndividualTodoImpl value,
|
||||
$Res Function(_$IndividualTodoImpl) then) =
|
||||
__$$IndividualTodoImplCopyWithImpl<$Res>;
|
||||
@override
|
||||
@useResult
|
||||
$Res call({String todo, bool isCompleted, DateTime dueDate});
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class __$$IndividualTodoImplCopyWithImpl<$Res>
|
||||
extends _$IndividualTodoCopyWithImpl<$Res, _$IndividualTodoImpl>
|
||||
implements _$$IndividualTodoImplCopyWith<$Res> {
|
||||
__$$IndividualTodoImplCopyWithImpl(
|
||||
_$IndividualTodoImpl _value, $Res Function(_$IndividualTodoImpl) _then)
|
||||
: super(_value, _then);
|
||||
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({
|
||||
Object? todo = null,
|
||||
Object? isCompleted = null,
|
||||
Object? dueDate = null,
|
||||
}) {
|
||||
return _then(_$IndividualTodoImpl(
|
||||
todo: null == todo
|
||||
? _value.todo
|
||||
: todo // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
isCompleted: null == isCompleted
|
||||
? _value.isCompleted
|
||||
: isCompleted // ignore: cast_nullable_to_non_nullable
|
||||
as bool,
|
||||
dueDate: null == dueDate
|
||||
? _value.dueDate
|
||||
: dueDate // ignore: cast_nullable_to_non_nullable
|
||||
as DateTime,
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
@JsonSerializable()
|
||||
class _$IndividualTodoImpl
|
||||
with DiagnosticableTreeMixin
|
||||
implements _IndividualTodo {
|
||||
const _$IndividualTodoImpl(
|
||||
{required this.todo, required this.isCompleted, required this.dueDate});
|
||||
|
||||
factory _$IndividualTodoImpl.fromJson(Map<String, dynamic> json) =>
|
||||
_$$IndividualTodoImplFromJson(json);
|
||||
|
||||
@override
|
||||
final String todo;
|
||||
@override
|
||||
final bool isCompleted;
|
||||
@override
|
||||
final DateTime dueDate;
|
||||
|
||||
@override
|
||||
String toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) {
|
||||
return 'IndividualTodo(todo: $todo, isCompleted: $isCompleted, dueDate: $dueDate)';
|
||||
}
|
||||
|
||||
@override
|
||||
void debugFillProperties(DiagnosticPropertiesBuilder properties) {
|
||||
super.debugFillProperties(properties);
|
||||
properties
|
||||
..add(DiagnosticsProperty('type', 'IndividualTodo'))
|
||||
..add(DiagnosticsProperty('todo', todo))
|
||||
..add(DiagnosticsProperty('isCompleted', isCompleted))
|
||||
..add(DiagnosticsProperty('dueDate', dueDate));
|
||||
}
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
return identical(this, other) ||
|
||||
(other.runtimeType == runtimeType &&
|
||||
other is _$IndividualTodoImpl &&
|
||||
(identical(other.todo, todo) || other.todo == todo) &&
|
||||
(identical(other.isCompleted, isCompleted) ||
|
||||
other.isCompleted == isCompleted) &&
|
||||
(identical(other.dueDate, dueDate) || other.dueDate == dueDate));
|
||||
}
|
||||
|
||||
@JsonKey(ignore: true)
|
||||
@override
|
||||
int get hashCode => Object.hash(runtimeType, todo, isCompleted, dueDate);
|
||||
|
||||
@JsonKey(ignore: true)
|
||||
@override
|
||||
@pragma('vm:prefer-inline')
|
||||
_$$IndividualTodoImplCopyWith<_$IndividualTodoImpl> get copyWith =>
|
||||
__$$IndividualTodoImplCopyWithImpl<_$IndividualTodoImpl>(
|
||||
this, _$identity);
|
||||
|
||||
@override
|
||||
Map<String, dynamic> toJson() {
|
||||
return _$$IndividualTodoImplToJson(
|
||||
this,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
abstract class _IndividualTodo implements IndividualTodo {
|
||||
const factory _IndividualTodo(
|
||||
{required final String todo,
|
||||
required final bool isCompleted,
|
||||
required final DateTime dueDate}) = _$IndividualTodoImpl;
|
||||
|
||||
factory _IndividualTodo.fromJson(Map<String, dynamic> json) =
|
||||
_$IndividualTodoImpl.fromJson;
|
||||
|
||||
@override
|
||||
String get todo;
|
||||
@override
|
||||
bool get isCompleted;
|
||||
@override
|
||||
DateTime get dueDate;
|
||||
@override
|
||||
@JsonKey(ignore: true)
|
||||
_$$IndividualTodoImplCopyWith<_$IndividualTodoImpl> get copyWith =>
|
||||
throw _privateConstructorUsedError;
|
||||
}
|
||||
|
||||
TasksItem _$TasksItemFromJson(Map<String, dynamic> json) {
|
||||
return _TasksItem.fromJson(json);
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
mixin _$TasksItem {
|
||||
String get widgetType => throw _privateConstructorUsedError;
|
||||
String get name => throw _privateConstructorUsedError;
|
||||
bool get isExpanded => throw _privateConstructorUsedError;
|
||||
List<String> get taskList => throw _privateConstructorUsedError;
|
||||
List<String> get completedTaskList => throw _privateConstructorUsedError;
|
||||
bool get isVisible => throw _privateConstructorUsedError;
|
||||
int get id => throw _privateConstructorUsedError;
|
||||
|
||||
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
||||
@JsonKey(ignore: true)
|
||||
$TasksItemCopyWith<TasksItem> get copyWith =>
|
||||
throw _privateConstructorUsedError;
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract class $TasksItemCopyWith<$Res> {
|
||||
factory $TasksItemCopyWith(TasksItem value, $Res Function(TasksItem) then) =
|
||||
_$TasksItemCopyWithImpl<$Res, TasksItem>;
|
||||
@useResult
|
||||
$Res call(
|
||||
{String widgetType,
|
||||
String name,
|
||||
bool isExpanded,
|
||||
List<String> taskList,
|
||||
List<String> completedTaskList,
|
||||
bool isVisible,
|
||||
int id});
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class _$TasksItemCopyWithImpl<$Res, $Val extends TasksItem>
|
||||
implements $TasksItemCopyWith<$Res> {
|
||||
_$TasksItemCopyWithImpl(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? widgetType = null,
|
||||
Object? name = null,
|
||||
Object? isExpanded = null,
|
||||
Object? taskList = null,
|
||||
Object? completedTaskList = null,
|
||||
Object? isVisible = null,
|
||||
Object? id = null,
|
||||
}) {
|
||||
return _then(_value.copyWith(
|
||||
widgetType: null == widgetType
|
||||
? _value.widgetType
|
||||
: widgetType // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
name: null == name
|
||||
? _value.name
|
||||
: name // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
isExpanded: null == isExpanded
|
||||
? _value.isExpanded
|
||||
: isExpanded // ignore: cast_nullable_to_non_nullable
|
||||
as bool,
|
||||
taskList: null == taskList
|
||||
? _value.taskList
|
||||
: taskList // ignore: cast_nullable_to_non_nullable
|
||||
as List<String>,
|
||||
completedTaskList: null == completedTaskList
|
||||
? _value.completedTaskList
|
||||
: completedTaskList // ignore: cast_nullable_to_non_nullable
|
||||
as List<String>,
|
||||
isVisible: null == isVisible
|
||||
? _value.isVisible
|
||||
: isVisible // ignore: cast_nullable_to_non_nullable
|
||||
as bool,
|
||||
id: null == id
|
||||
? _value.id
|
||||
: id // ignore: cast_nullable_to_non_nullable
|
||||
as int,
|
||||
) as $Val);
|
||||
}
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract class _$$TasksItemImplCopyWith<$Res>
|
||||
implements $TasksItemCopyWith<$Res> {
|
||||
factory _$$TasksItemImplCopyWith(
|
||||
_$TasksItemImpl value, $Res Function(_$TasksItemImpl) then) =
|
||||
__$$TasksItemImplCopyWithImpl<$Res>;
|
||||
@override
|
||||
@useResult
|
||||
$Res call(
|
||||
{String widgetType,
|
||||
String name,
|
||||
bool isExpanded,
|
||||
List<String> taskList,
|
||||
List<String> completedTaskList,
|
||||
bool isVisible,
|
||||
int id});
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class __$$TasksItemImplCopyWithImpl<$Res>
|
||||
extends _$TasksItemCopyWithImpl<$Res, _$TasksItemImpl>
|
||||
implements _$$TasksItemImplCopyWith<$Res> {
|
||||
__$$TasksItemImplCopyWithImpl(
|
||||
_$TasksItemImpl _value, $Res Function(_$TasksItemImpl) _then)
|
||||
: super(_value, _then);
|
||||
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({
|
||||
Object? widgetType = null,
|
||||
Object? name = null,
|
||||
Object? isExpanded = null,
|
||||
Object? taskList = null,
|
||||
Object? completedTaskList = null,
|
||||
Object? isVisible = null,
|
||||
Object? id = null,
|
||||
}) {
|
||||
return _then(_$TasksItemImpl(
|
||||
widgetType: null == widgetType
|
||||
? _value.widgetType
|
||||
: widgetType // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
name: null == name
|
||||
? _value.name
|
||||
: name // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
isExpanded: null == isExpanded
|
||||
? _value.isExpanded
|
||||
: isExpanded // ignore: cast_nullable_to_non_nullable
|
||||
as bool,
|
||||
taskList: null == taskList
|
||||
? _value._taskList
|
||||
: taskList // ignore: cast_nullable_to_non_nullable
|
||||
as List<String>,
|
||||
completedTaskList: null == completedTaskList
|
||||
? _value._completedTaskList
|
||||
: completedTaskList // ignore: cast_nullable_to_non_nullable
|
||||
as List<String>,
|
||||
isVisible: null == isVisible
|
||||
? _value.isVisible
|
||||
: isVisible // ignore: cast_nullable_to_non_nullable
|
||||
as bool,
|
||||
id: null == id
|
||||
? _value.id
|
||||
: id // ignore: cast_nullable_to_non_nullable
|
||||
as int,
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
@JsonSerializable()
|
||||
class _$TasksItemImpl with DiagnosticableTreeMixin implements _TasksItem {
|
||||
const _$TasksItemImpl(
|
||||
{required this.widgetType,
|
||||
required this.name,
|
||||
required this.isExpanded,
|
||||
required final List<String> taskList,
|
||||
required final List<String> completedTaskList,
|
||||
required this.isVisible,
|
||||
this.id = -1})
|
||||
: _taskList = taskList,
|
||||
_completedTaskList = completedTaskList;
|
||||
|
||||
factory _$TasksItemImpl.fromJson(Map<String, dynamic> json) =>
|
||||
_$$TasksItemImplFromJson(json);
|
||||
|
||||
@override
|
||||
final String widgetType;
|
||||
@override
|
||||
final String name;
|
||||
@override
|
||||
final bool isExpanded;
|
||||
final List<String> _taskList;
|
||||
@override
|
||||
List<String> get taskList {
|
||||
if (_taskList is EqualUnmodifiableListView) return _taskList;
|
||||
// ignore: implicit_dynamic_type
|
||||
return EqualUnmodifiableListView(_taskList);
|
||||
}
|
||||
|
||||
final List<String> _completedTaskList;
|
||||
@override
|
||||
List<String> get completedTaskList {
|
||||
if (_completedTaskList is EqualUnmodifiableListView)
|
||||
return _completedTaskList;
|
||||
// ignore: implicit_dynamic_type
|
||||
return EqualUnmodifiableListView(_completedTaskList);
|
||||
}
|
||||
|
||||
@override
|
||||
final bool isVisible;
|
||||
@override
|
||||
@JsonKey()
|
||||
final int id;
|
||||
|
||||
@override
|
||||
String toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) {
|
||||
return 'TasksItem(widgetType: $widgetType, name: $name, isExpanded: $isExpanded, taskList: $taskList, completedTaskList: $completedTaskList, isVisible: $isVisible, id: $id)';
|
||||
}
|
||||
|
||||
@override
|
||||
void debugFillProperties(DiagnosticPropertiesBuilder properties) {
|
||||
super.debugFillProperties(properties);
|
||||
properties
|
||||
..add(DiagnosticsProperty('type', 'TasksItem'))
|
||||
..add(DiagnosticsProperty('widgetType', widgetType))
|
||||
..add(DiagnosticsProperty('name', name))
|
||||
..add(DiagnosticsProperty('isExpanded', isExpanded))
|
||||
..add(DiagnosticsProperty('taskList', taskList))
|
||||
..add(DiagnosticsProperty('completedTaskList', completedTaskList))
|
||||
..add(DiagnosticsProperty('isVisible', isVisible))
|
||||
..add(DiagnosticsProperty('id', id));
|
||||
}
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
return identical(this, other) ||
|
||||
(other.runtimeType == runtimeType &&
|
||||
other is _$TasksItemImpl &&
|
||||
(identical(other.widgetType, widgetType) ||
|
||||
other.widgetType == widgetType) &&
|
||||
(identical(other.name, name) || other.name == name) &&
|
||||
(identical(other.isExpanded, isExpanded) ||
|
||||
other.isExpanded == isExpanded) &&
|
||||
const DeepCollectionEquality().equals(other._taskList, _taskList) &&
|
||||
const DeepCollectionEquality()
|
||||
.equals(other._completedTaskList, _completedTaskList) &&
|
||||
(identical(other.isVisible, isVisible) ||
|
||||
other.isVisible == isVisible) &&
|
||||
(identical(other.id, id) || other.id == id));
|
||||
}
|
||||
|
||||
@JsonKey(ignore: true)
|
||||
@override
|
||||
int get hashCode => Object.hash(
|
||||
runtimeType,
|
||||
widgetType,
|
||||
name,
|
||||
isExpanded,
|
||||
const DeepCollectionEquality().hash(_taskList),
|
||||
const DeepCollectionEquality().hash(_completedTaskList),
|
||||
isVisible,
|
||||
id);
|
||||
|
||||
@JsonKey(ignore: true)
|
||||
@override
|
||||
@pragma('vm:prefer-inline')
|
||||
_$$TasksItemImplCopyWith<_$TasksItemImpl> get copyWith =>
|
||||
__$$TasksItemImplCopyWithImpl<_$TasksItemImpl>(this, _$identity);
|
||||
|
||||
@override
|
||||
Map<String, dynamic> toJson() {
|
||||
return _$$TasksItemImplToJson(
|
||||
this,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
abstract class _TasksItem implements TasksItem {
|
||||
const factory _TasksItem(
|
||||
{required final String widgetType,
|
||||
required final String name,
|
||||
required final bool isExpanded,
|
||||
required final List<String> taskList,
|
||||
required final List<String> completedTaskList,
|
||||
required final bool isVisible,
|
||||
final int id}) = _$TasksItemImpl;
|
||||
|
||||
factory _TasksItem.fromJson(Map<String, dynamic> json) =
|
||||
_$TasksItemImpl.fromJson;
|
||||
|
||||
@override
|
||||
String get widgetType;
|
||||
@override
|
||||
String get name;
|
||||
@override
|
||||
bool get isExpanded;
|
||||
@override
|
||||
List<String> get taskList;
|
||||
@override
|
||||
List<String> get completedTaskList;
|
||||
@override
|
||||
bool get isVisible;
|
||||
@override
|
||||
int get id;
|
||||
@override
|
||||
@JsonKey(ignore: true)
|
||||
_$$TasksItemImplCopyWith<_$TasksItemImpl> get copyWith =>
|
||||
throw _privateConstructorUsedError;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue