-
-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #406 from lamarios/feature/freezed
Freezed migration
- Loading branch information
Showing
160 changed files
with
9,950 additions
and
5,776 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,167 @@ | ||
// 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 'app.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 _$AppState { | ||
int get selectedIndex => throw _privateConstructorUsedError; | ||
Server? get server => throw _privateConstructorUsedError; | ||
HomeLayout get homeLayout => throw _privateConstructorUsedError; | ||
|
||
@JsonKey(ignore: true) | ||
$AppStateCopyWith<AppState> get copyWith => | ||
throw _privateConstructorUsedError; | ||
} | ||
|
||
/// @nodoc | ||
abstract class $AppStateCopyWith<$Res> { | ||
factory $AppStateCopyWith(AppState value, $Res Function(AppState) then) = | ||
_$AppStateCopyWithImpl<$Res, AppState>; | ||
@useResult | ||
$Res call({int selectedIndex, Server? server, HomeLayout homeLayout}); | ||
} | ||
|
||
/// @nodoc | ||
class _$AppStateCopyWithImpl<$Res, $Val extends AppState> | ||
implements $AppStateCopyWith<$Res> { | ||
_$AppStateCopyWithImpl(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? selectedIndex = null, | ||
Object? server = freezed, | ||
Object? homeLayout = null, | ||
}) { | ||
return _then(_value.copyWith( | ||
selectedIndex: null == selectedIndex | ||
? _value.selectedIndex | ||
: selectedIndex // ignore: cast_nullable_to_non_nullable | ||
as int, | ||
server: freezed == server | ||
? _value.server | ||
: server // ignore: cast_nullable_to_non_nullable | ||
as Server?, | ||
homeLayout: null == homeLayout | ||
? _value.homeLayout | ||
: homeLayout // ignore: cast_nullable_to_non_nullable | ||
as HomeLayout, | ||
) as $Val); | ||
} | ||
} | ||
|
||
/// @nodoc | ||
abstract class _$$AppStateImplCopyWith<$Res> | ||
implements $AppStateCopyWith<$Res> { | ||
factory _$$AppStateImplCopyWith( | ||
_$AppStateImpl value, $Res Function(_$AppStateImpl) then) = | ||
__$$AppStateImplCopyWithImpl<$Res>; | ||
@override | ||
@useResult | ||
$Res call({int selectedIndex, Server? server, HomeLayout homeLayout}); | ||
} | ||
|
||
/// @nodoc | ||
class __$$AppStateImplCopyWithImpl<$Res> | ||
extends _$AppStateCopyWithImpl<$Res, _$AppStateImpl> | ||
implements _$$AppStateImplCopyWith<$Res> { | ||
__$$AppStateImplCopyWithImpl( | ||
_$AppStateImpl _value, $Res Function(_$AppStateImpl) _then) | ||
: super(_value, _then); | ||
|
||
@pragma('vm:prefer-inline') | ||
@override | ||
$Res call({ | ||
Object? selectedIndex = null, | ||
Object? server = freezed, | ||
Object? homeLayout = null, | ||
}) { | ||
return _then(_$AppStateImpl( | ||
null == selectedIndex | ||
? _value.selectedIndex | ||
: selectedIndex // ignore: cast_nullable_to_non_nullable | ||
as int, | ||
freezed == server | ||
? _value.server | ||
: server // ignore: cast_nullable_to_non_nullable | ||
as Server?, | ||
null == homeLayout | ||
? _value.homeLayout | ||
: homeLayout // ignore: cast_nullable_to_non_nullable | ||
as HomeLayout, | ||
)); | ||
} | ||
} | ||
|
||
/// @nodoc | ||
class _$AppStateImpl implements _AppState { | ||
_$AppStateImpl(this.selectedIndex, this.server, this.homeLayout); | ||
|
||
@override | ||
final int selectedIndex; | ||
@override | ||
final Server? server; | ||
@override | ||
final HomeLayout homeLayout; | ||
|
||
@override | ||
String toString() { | ||
return 'AppState(selectedIndex: $selectedIndex, server: $server, homeLayout: $homeLayout)'; | ||
} | ||
|
||
@override | ||
bool operator ==(dynamic other) { | ||
return identical(this, other) || | ||
(other.runtimeType == runtimeType && | ||
other is _$AppStateImpl && | ||
(identical(other.selectedIndex, selectedIndex) || | ||
other.selectedIndex == selectedIndex) && | ||
(identical(other.server, server) || other.server == server) && | ||
(identical(other.homeLayout, homeLayout) || | ||
other.homeLayout == homeLayout)); | ||
} | ||
|
||
@override | ||
int get hashCode => | ||
Object.hash(runtimeType, selectedIndex, server, homeLayout); | ||
|
||
@JsonKey(ignore: true) | ||
@override | ||
@pragma('vm:prefer-inline') | ||
_$$AppStateImplCopyWith<_$AppStateImpl> get copyWith => | ||
__$$AppStateImplCopyWithImpl<_$AppStateImpl>(this, _$identity); | ||
} | ||
|
||
abstract class _AppState implements AppState { | ||
factory _AppState(final int selectedIndex, final Server? server, | ||
final HomeLayout homeLayout) = _$AppStateImpl; | ||
|
||
@override | ||
int get selectedIndex; | ||
@override | ||
Server? get server; | ||
@override | ||
HomeLayout get homeLayout; | ||
@override | ||
@JsonKey(ignore: true) | ||
_$$AppStateImplCopyWith<_$AppStateImpl> get copyWith => | ||
throw _privateConstructorUsedError; | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.