2021-11-19 17:05:57 +03:00
// coverage:ignore-file
// GENERATED CODE - DO NOT MODIFY BY HAND
2022-05-12 12:06:28 +03:00
// ignore_for_file: type=lint
2022-12-05 17:26:54 +03:00
// 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
2021-11-19 17:05:57 +03:00
part of ' models.dart ' ;
// **************************************************************************
// FreezedGenerator
// **************************************************************************
T _ $identity < T > ( T value ) = > value ;
final _privateConstructorUsedError = UnsupportedError (
2024-02-05 17:15:38 +03:00
' 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. \n Please check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models ' ) ;
2022-01-12 14:49:04 +03:00
/// @nodoc
mixin _ $YubiKeyData {
DeviceNode get node = > throw _privateConstructorUsedError ;
String get name = > throw _privateConstructorUsedError ;
DeviceInfo get info = > throw _privateConstructorUsedError ;
@ JsonKey ( ignore: true )
$YubiKeyDataCopyWith < YubiKeyData > get copyWith = >
throw _privateConstructorUsedError ;
}
/// @nodoc
abstract class $YubiKeyDataCopyWith < $Res > {
factory $YubiKeyDataCopyWith (
YubiKeyData value , $Res Function ( YubiKeyData ) then ) =
2022-10-19 12:15:48 +03:00
_ $YubiKeyDataCopyWithImpl < $Res , YubiKeyData > ;
@ useResult
2022-01-12 14:49:04 +03:00
$Res call ( { DeviceNode node , String name , DeviceInfo info } ) ;
$DeviceNodeCopyWith < $Res > get node ;
$DeviceInfoCopyWith < $Res > get info ;
}
/// @nodoc
2022-10-19 12:15:48 +03:00
class _ $YubiKeyDataCopyWithImpl < $Res , $Val extends YubiKeyData >
implements $YubiKeyDataCopyWith < $Res > {
2022-01-12 14:49:04 +03:00
_ $YubiKeyDataCopyWithImpl ( this . _value , this . _then ) ;
// ignore: unused_field
2022-10-19 12:15:48 +03:00
final $Val _value ;
// ignore: unused_field
final $Res Function ( $Val ) _then ;
2022-01-12 14:49:04 +03:00
2022-10-19 12:15:48 +03:00
@ pragma ( ' vm:prefer-inline ' )
2022-01-12 14:49:04 +03:00
@ override
$Res call ( {
2022-10-19 12:15:48 +03:00
Object ? node = null ,
Object ? name = null ,
Object ? info = null ,
2022-01-12 14:49:04 +03:00
} ) {
return _then ( _value . copyWith (
2022-10-19 12:15:48 +03:00
node: null = = node
2022-01-12 14:49:04 +03:00
? _value . node
: node // ignore: cast_nullable_to_non_nullable
as DeviceNode ,
2022-10-19 12:15:48 +03:00
name: null = = name
2022-01-12 14:49:04 +03:00
? _value . name
: name // ignore: cast_nullable_to_non_nullable
as String ,
2022-10-19 12:15:48 +03:00
info: null = = info
2022-01-12 14:49:04 +03:00
? _value . info
: info // ignore: cast_nullable_to_non_nullable
as DeviceInfo ,
2022-10-19 12:15:48 +03:00
) as $Val ) ;
2022-01-12 14:49:04 +03:00
}
@ override
2022-10-19 12:15:48 +03:00
@ pragma ( ' vm:prefer-inline ' )
2022-01-12 14:49:04 +03:00
$DeviceNodeCopyWith < $Res > get node {
return $DeviceNodeCopyWith < $Res > ( _value . node , ( value ) {
2022-10-19 12:15:48 +03:00
return _then ( _value . copyWith ( node: value ) as $Val ) ;
2022-01-12 14:49:04 +03:00
} ) ;
}
@ override
2022-10-19 12:15:48 +03:00
@ pragma ( ' vm:prefer-inline ' )
2022-01-12 14:49:04 +03:00
$DeviceInfoCopyWith < $Res > get info {
return $DeviceInfoCopyWith < $Res > ( _value . info , ( value ) {
2022-10-19 12:15:48 +03:00
return _then ( _value . copyWith ( info: value ) as $Val ) ;
2022-01-12 14:49:04 +03:00
} ) ;
}
}
/// @nodoc
2023-11-15 10:56:52 +03:00
abstract class _ $ $YubiKeyDataImplCopyWith < $Res >
2022-01-12 14:49:04 +03:00
implements $YubiKeyDataCopyWith < $Res > {
2023-11-15 10:56:52 +03:00
factory _ $ $YubiKeyDataImplCopyWith (
_ $YubiKeyDataImpl value , $Res Function ( _ $YubiKeyDataImpl ) then ) =
__ $ $YubiKeyDataImplCopyWithImpl < $Res > ;
2022-01-12 14:49:04 +03:00
@ override
2022-10-19 12:15:48 +03:00
@ useResult
2022-01-12 14:49:04 +03:00
$Res call ( { DeviceNode node , String name , DeviceInfo info } ) ;
@ override
$DeviceNodeCopyWith < $Res > get node ;
@ override
$DeviceInfoCopyWith < $Res > get info ;
}
/// @nodoc
2023-11-15 10:56:52 +03:00
class __ $ $YubiKeyDataImplCopyWithImpl < $Res >
extends _ $YubiKeyDataCopyWithImpl < $Res , _ $YubiKeyDataImpl >
implements _ $ $YubiKeyDataImplCopyWith < $Res > {
__ $ $YubiKeyDataImplCopyWithImpl (
_ $YubiKeyDataImpl _value , $Res Function ( _ $YubiKeyDataImpl ) _then )
2022-10-19 12:15:48 +03:00
: super ( _value , _then ) ;
2022-01-12 14:49:04 +03:00
2022-10-19 12:15:48 +03:00
@ pragma ( ' vm:prefer-inline ' )
2022-01-12 14:49:04 +03:00
@ override
$Res call ( {
2022-10-19 12:15:48 +03:00
Object ? node = null ,
Object ? name = null ,
Object ? info = null ,
2022-01-12 14:49:04 +03:00
} ) {
2023-11-15 10:56:52 +03:00
return _then ( _ $YubiKeyDataImpl (
2022-10-19 12:15:48 +03:00
null = = node
2022-01-12 14:49:04 +03:00
? _value . node
: node // ignore: cast_nullable_to_non_nullable
as DeviceNode ,
2022-10-19 12:15:48 +03:00
null = = name
2022-01-12 14:49:04 +03:00
? _value . name
: name // ignore: cast_nullable_to_non_nullable
as String ,
2022-10-19 12:15:48 +03:00
null = = info
2022-01-12 14:49:04 +03:00
? _value . info
: info // ignore: cast_nullable_to_non_nullable
as DeviceInfo ,
) ) ;
}
}
/// @nodoc
2023-11-15 10:56:52 +03:00
class _ $YubiKeyDataImpl implements _YubiKeyData {
_ $YubiKeyDataImpl ( this . node , this . name , this . info ) ;
2022-01-12 14:49:04 +03:00
@ override
final DeviceNode node ;
@ override
final String name ;
@ override
final DeviceInfo info ;
@ override
String toString ( ) {
return ' YubiKeyData(node: $ node , name: $ name , info: $ info ) ' ;
}
@ override
2024-01-24 11:36:33 +03:00
bool operator = = ( Object other ) {
2022-01-12 14:49:04 +03:00
return identical ( this , other ) | |
( other . runtimeType = = runtimeType & &
2023-11-15 10:56:52 +03:00
other is _ $YubiKeyDataImpl & &
2022-10-19 12:15:48 +03:00
( identical ( other . node , node ) | | other . node = = node ) & &
( identical ( other . name , name ) | | other . name = = name ) & &
( identical ( other . info , info ) | | other . info = = info ) ) ;
2022-01-12 14:49:04 +03:00
}
@ override
2022-10-19 12:15:48 +03:00
int get hashCode = > Object . hash ( runtimeType , node , name , info ) ;
2022-01-12 14:49:04 +03:00
@ JsonKey ( ignore: true )
@ override
2022-10-19 12:15:48 +03:00
@ pragma ( ' vm:prefer-inline ' )
2023-11-15 10:56:52 +03:00
_ $ $YubiKeyDataImplCopyWith < _ $YubiKeyDataImpl > get copyWith = >
__ $ $YubiKeyDataImplCopyWithImpl < _ $YubiKeyDataImpl > ( this , _ $identity ) ;
2022-01-12 14:49:04 +03:00
}
abstract class _YubiKeyData implements YubiKeyData {
2022-05-12 12:06:28 +03:00
factory _YubiKeyData (
final DeviceNode node , final String name , final DeviceInfo info ) =
2023-11-15 10:56:52 +03:00
_ $YubiKeyDataImpl ;
2022-01-12 14:49:04 +03:00
@ override
2022-07-07 11:29:42 +03:00
DeviceNode get node ;
2022-01-12 14:49:04 +03:00
@ override
2022-07-07 11:29:42 +03:00
String get name ;
2022-01-12 14:49:04 +03:00
@ override
2022-07-07 11:29:42 +03:00
DeviceInfo get info ;
2022-01-12 14:49:04 +03:00
@ override
@ JsonKey ( ignore: true )
2023-11-15 10:56:52 +03:00
_ $ $YubiKeyDataImplCopyWith < _ $YubiKeyDataImpl > get copyWith = >
2022-01-12 14:49:04 +03:00
throw _privateConstructorUsedError ;
2021-11-19 17:05:57 +03:00
}
/// @nodoc
mixin _ $DeviceNode {
2022-02-08 15:44:35 +03:00
DevicePath get path = > throw _privateConstructorUsedError ;
2021-11-19 17:05:57 +03:00
String get name = > throw _privateConstructorUsedError ;
2022-01-12 14:49:04 +03:00
@ optionalTypeArgs
TResult when < TResult extends Object ? > ( {
required TResult Function (
2022-03-16 14:43:56 +03:00
DevicePath path , String name , UsbPid pid , DeviceInfo ? info )
2022-01-12 14:49:04 +03:00
usbYubiKey ,
2022-02-08 15:44:35 +03:00
required TResult Function ( DevicePath path , String name ) nfcReader ,
2022-01-12 14:49:04 +03:00
} ) = >
throw _privateConstructorUsedError ;
@ optionalTypeArgs
TResult ? whenOrNull < TResult extends Object ? > ( {
2022-10-19 12:15:48 +03:00
TResult ? Function (
2022-03-16 14:43:56 +03:00
DevicePath path , String name , UsbPid pid , DeviceInfo ? info ) ?
2022-01-12 14:49:04 +03:00
usbYubiKey ,
2022-10-19 12:15:48 +03:00
TResult ? Function ( DevicePath path , String name ) ? nfcReader ,
2022-01-12 14:49:04 +03:00
} ) = >
throw _privateConstructorUsedError ;
@ optionalTypeArgs
TResult maybeWhen < TResult extends Object ? > ( {
2022-03-16 14:43:56 +03:00
TResult Function (
DevicePath path , String name , UsbPid pid , DeviceInfo ? info ) ?
2022-01-12 14:49:04 +03:00
usbYubiKey ,
2022-02-08 15:44:35 +03:00
TResult Function ( DevicePath path , String name ) ? nfcReader ,
2022-01-12 14:49:04 +03:00
required TResult orElse ( ) ,
} ) = >
throw _privateConstructorUsedError ;
@ optionalTypeArgs
TResult map < TResult extends Object ? > ( {
required TResult Function ( UsbYubiKeyNode value ) usbYubiKey ,
required TResult Function ( NfcReaderNode value ) nfcReader ,
} ) = >
throw _privateConstructorUsedError ;
@ optionalTypeArgs
TResult ? mapOrNull < TResult extends Object ? > ( {
2022-10-19 12:15:48 +03:00
TResult ? Function ( UsbYubiKeyNode value ) ? usbYubiKey ,
TResult ? Function ( NfcReaderNode value ) ? nfcReader ,
2022-01-12 14:49:04 +03:00
} ) = >
throw _privateConstructorUsedError ;
@ optionalTypeArgs
TResult maybeMap < TResult extends Object ? > ( {
TResult Function ( UsbYubiKeyNode value ) ? usbYubiKey ,
TResult Function ( NfcReaderNode value ) ? nfcReader ,
required TResult orElse ( ) ,
} ) = >
throw _privateConstructorUsedError ;
2021-11-19 17:05:57 +03:00
@ JsonKey ( ignore: true )
$DeviceNodeCopyWith < DeviceNode > get copyWith = >
throw _privateConstructorUsedError ;
}
/// @nodoc
abstract class $DeviceNodeCopyWith < $Res > {
factory $DeviceNodeCopyWith (
DeviceNode value , $Res Function ( DeviceNode ) then ) =
2022-10-19 12:15:48 +03:00
_ $DeviceNodeCopyWithImpl < $Res , DeviceNode > ;
@ useResult
2022-02-08 15:44:35 +03:00
$Res call ( { DevicePath path , String name } ) ;
2021-11-19 17:05:57 +03:00
}
/// @nodoc
2022-10-19 12:15:48 +03:00
class _ $DeviceNodeCopyWithImpl < $Res , $Val extends DeviceNode >
implements $DeviceNodeCopyWith < $Res > {
2021-11-19 17:05:57 +03:00
_ $DeviceNodeCopyWithImpl ( this . _value , this . _then ) ;
// ignore: unused_field
2022-10-19 12:15:48 +03:00
final $Val _value ;
// ignore: unused_field
final $Res Function ( $Val ) _then ;
2021-11-19 17:05:57 +03:00
2022-10-19 12:15:48 +03:00
@ pragma ( ' vm:prefer-inline ' )
2021-11-19 17:05:57 +03:00
@ override
$Res call ( {
2022-10-19 12:15:48 +03:00
Object ? path = null ,
Object ? name = null ,
2021-11-19 17:05:57 +03:00
} ) {
return _then ( _value . copyWith (
2022-10-19 12:15:48 +03:00
path: null = = path
2021-11-19 17:05:57 +03:00
? _value . path
: path // ignore: cast_nullable_to_non_nullable
2022-02-08 15:44:35 +03:00
as DevicePath ,
2022-10-19 12:15:48 +03:00
name: null = = name
2021-11-19 17:05:57 +03:00
? _value . name
: name // ignore: cast_nullable_to_non_nullable
as String ,
2022-10-19 12:15:48 +03:00
) as $Val ) ;
2022-01-12 14:49:04 +03:00
}
}
/// @nodoc
2023-11-15 10:56:52 +03:00
abstract class _ $ $UsbYubiKeyNodeImplCopyWith < $Res >
2022-01-12 14:49:04 +03:00
implements $DeviceNodeCopyWith < $Res > {
2023-11-15 10:56:52 +03:00
factory _ $ $UsbYubiKeyNodeImplCopyWith ( _ $UsbYubiKeyNodeImpl value ,
$Res Function ( _ $UsbYubiKeyNodeImpl ) then ) =
__ $ $UsbYubiKeyNodeImplCopyWithImpl < $Res > ;
2022-01-12 14:49:04 +03:00
@ override
2022-10-19 12:15:48 +03:00
@ useResult
2022-03-16 14:43:56 +03:00
$Res call ( { DevicePath path , String name , UsbPid pid , DeviceInfo ? info } ) ;
2022-01-12 14:49:04 +03:00
2022-03-07 17:36:49 +03:00
$DeviceInfoCopyWith < $Res > ? get info ;
2022-01-12 14:49:04 +03:00
}
/// @nodoc
2023-11-15 10:56:52 +03:00
class __ $ $UsbYubiKeyNodeImplCopyWithImpl < $Res >
extends _ $DeviceNodeCopyWithImpl < $Res , _ $UsbYubiKeyNodeImpl >
implements _ $ $UsbYubiKeyNodeImplCopyWith < $Res > {
__ $ $UsbYubiKeyNodeImplCopyWithImpl (
_ $UsbYubiKeyNodeImpl _value , $Res Function ( _ $UsbYubiKeyNodeImpl ) _then )
2022-10-19 12:15:48 +03:00
: super ( _value , _then ) ;
2022-01-12 14:49:04 +03:00
2022-10-19 12:15:48 +03:00
@ pragma ( ' vm:prefer-inline ' )
2022-01-12 14:49:04 +03:00
@ override
$Res call ( {
2022-10-19 12:15:48 +03:00
Object ? path = null ,
Object ? name = null ,
Object ? pid = null ,
2022-01-12 14:49:04 +03:00
Object ? info = freezed ,
} ) {
2023-11-15 10:56:52 +03:00
return _then ( _ $UsbYubiKeyNodeImpl (
2022-10-19 12:15:48 +03:00
null = = path
2022-01-12 14:49:04 +03:00
? _value . path
: path // ignore: cast_nullable_to_non_nullable
2022-02-08 15:44:35 +03:00
as DevicePath ,
2022-10-19 12:15:48 +03:00
null = = name
2022-01-12 14:49:04 +03:00
? _value . name
: name // ignore: cast_nullable_to_non_nullable
as String ,
2022-10-19 12:15:48 +03:00
null = = pid
2022-01-12 14:49:04 +03:00
? _value . pid
: pid // ignore: cast_nullable_to_non_nullable
2022-03-16 14:43:56 +03:00
as UsbPid ,
2022-10-19 12:15:48 +03:00
freezed = = info
2021-11-19 17:05:57 +03:00
? _value . info
: info // ignore: cast_nullable_to_non_nullable
2022-03-07 17:36:49 +03:00
as DeviceInfo ? ,
2021-11-19 17:05:57 +03:00
) ) ;
}
@ override
2022-10-19 12:15:48 +03:00
@ pragma ( ' vm:prefer-inline ' )
2022-03-07 17:36:49 +03:00
$DeviceInfoCopyWith < $Res > ? get info {
if ( _value . info = = null ) {
return null ;
}
return $DeviceInfoCopyWith < $Res > ( _value . info ! , ( value ) {
2021-11-19 17:05:57 +03:00
return _then ( _value . copyWith ( info: value ) ) ;
} ) ;
}
}
/// @nodoc
2022-01-12 14:49:04 +03:00
2023-11-15 10:56:52 +03:00
class _ $UsbYubiKeyNodeImpl extends UsbYubiKeyNode {
_ $UsbYubiKeyNodeImpl ( this . path , this . name , this . pid , this . info ) : super . _ ( ) ;
2022-01-12 14:49:04 +03:00
@ override
2022-02-08 15:44:35 +03:00
final DevicePath path ;
2022-01-12 14:49:04 +03:00
@ override
final String name ;
@ override
2022-03-16 14:43:56 +03:00
final UsbPid pid ;
2022-01-12 14:49:04 +03:00
@ override
2022-03-07 17:36:49 +03:00
final DeviceInfo ? info ;
2022-01-12 14:49:04 +03:00
2021-11-19 17:05:57 +03:00
@ override
2022-01-12 14:49:04 +03:00
String toString ( ) {
return ' DeviceNode.usbYubiKey(path: $ path , name: $ name , pid: $ pid , info: $ info ) ' ;
}
2021-11-19 17:05:57 +03:00
@ override
2024-01-24 11:36:33 +03:00
bool operator = = ( Object other ) {
2022-01-12 14:49:04 +03:00
return identical ( this , other ) | |
( other . runtimeType = = runtimeType & &
2023-11-15 10:56:52 +03:00
other is _ $UsbYubiKeyNodeImpl & &
2022-10-19 12:15:48 +03:00
( identical ( other . path , path ) | | other . path = = path ) & &
( identical ( other . name , name ) | | other . name = = name ) & &
( identical ( other . pid , pid ) | | other . pid = = pid ) & &
( identical ( other . info , info ) | | other . info = = info ) ) ;
2022-01-12 14:49:04 +03:00
}
@ override
2022-10-19 12:15:48 +03:00
int get hashCode = > Object . hash ( runtimeType , path , name , pid , info ) ;
2022-01-12 14:49:04 +03:00
@ JsonKey ( ignore: true )
@ override
2022-10-19 12:15:48 +03:00
@ pragma ( ' vm:prefer-inline ' )
2023-11-15 10:56:52 +03:00
_ $ $UsbYubiKeyNodeImplCopyWith < _ $UsbYubiKeyNodeImpl > get copyWith = >
__ $ $UsbYubiKeyNodeImplCopyWithImpl < _ $UsbYubiKeyNodeImpl > (
this , _ $identity ) ;
2022-01-12 14:49:04 +03:00
@ override
@ optionalTypeArgs
TResult when < TResult extends Object ? > ( {
required TResult Function (
2022-03-16 14:43:56 +03:00
DevicePath path , String name , UsbPid pid , DeviceInfo ? info )
2022-01-12 14:49:04 +03:00
usbYubiKey ,
2022-02-08 15:44:35 +03:00
required TResult Function ( DevicePath path , String name ) nfcReader ,
2022-01-12 14:49:04 +03:00
} ) {
return usbYubiKey ( path , name , pid , info ) ;
}
@ override
@ optionalTypeArgs
TResult ? whenOrNull < TResult extends Object ? > ( {
2022-10-19 12:15:48 +03:00
TResult ? Function (
2022-03-16 14:43:56 +03:00
DevicePath path , String name , UsbPid pid , DeviceInfo ? info ) ?
2022-01-12 14:49:04 +03:00
usbYubiKey ,
2022-10-19 12:15:48 +03:00
TResult ? Function ( DevicePath path , String name ) ? nfcReader ,
2022-01-12 14:49:04 +03:00
} ) {
return usbYubiKey ? . call ( path , name , pid , info ) ;
}
@ override
@ optionalTypeArgs
TResult maybeWhen < TResult extends Object ? > ( {
2022-03-16 14:43:56 +03:00
TResult Function (
DevicePath path , String name , UsbPid pid , DeviceInfo ? info ) ?
2022-01-12 14:49:04 +03:00
usbYubiKey ,
2022-02-08 15:44:35 +03:00
TResult Function ( DevicePath path , String name ) ? nfcReader ,
2022-01-12 14:49:04 +03:00
required TResult orElse ( ) ,
} ) {
if ( usbYubiKey ! = null ) {
return usbYubiKey ( path , name , pid , info ) ;
}
return orElse ( ) ;
}
@ override
@ optionalTypeArgs
TResult map < TResult extends Object ? > ( {
required TResult Function ( UsbYubiKeyNode value ) usbYubiKey ,
required TResult Function ( NfcReaderNode value ) nfcReader ,
} ) {
return usbYubiKey ( this ) ;
}
@ override
@ optionalTypeArgs
TResult ? mapOrNull < TResult extends Object ? > ( {
2022-10-19 12:15:48 +03:00
TResult ? Function ( UsbYubiKeyNode value ) ? usbYubiKey ,
TResult ? Function ( NfcReaderNode value ) ? nfcReader ,
2022-01-12 14:49:04 +03:00
} ) {
return usbYubiKey ? . call ( this ) ;
}
@ override
@ optionalTypeArgs
TResult maybeMap < TResult extends Object ? > ( {
TResult Function ( UsbYubiKeyNode value ) ? usbYubiKey ,
TResult Function ( NfcReaderNode value ) ? nfcReader ,
required TResult orElse ( ) ,
} ) {
if ( usbYubiKey ! = null ) {
return usbYubiKey ( this ) ;
}
return orElse ( ) ;
}
}
2022-03-07 11:57:29 +03:00
abstract class UsbYubiKeyNode extends DeviceNode {
2022-05-12 12:06:28 +03:00
factory UsbYubiKeyNode ( final DevicePath path , final String name ,
2023-11-15 10:56:52 +03:00
final UsbPid pid , final DeviceInfo ? info ) = _ $UsbYubiKeyNodeImpl ;
2022-03-07 11:57:29 +03:00
UsbYubiKeyNode . _ ( ) : super . _ ( ) ;
2022-01-12 14:49:04 +03:00
@ override
2022-07-07 11:29:42 +03:00
DevicePath get path ;
2022-01-12 14:49:04 +03:00
@ override
2022-07-07 11:29:42 +03:00
String get name ;
UsbPid get pid ;
DeviceInfo ? get info ;
2022-01-12 14:49:04 +03:00
@ override
@ JsonKey ( ignore: true )
2023-11-15 10:56:52 +03:00
_ $ $UsbYubiKeyNodeImplCopyWith < _ $UsbYubiKeyNodeImpl > get copyWith = >
2022-01-12 14:49:04 +03:00
throw _privateConstructorUsedError ;
2021-11-19 17:05:57 +03:00
}
/// @nodoc
2023-11-15 10:56:52 +03:00
abstract class _ $ $NfcReaderNodeImplCopyWith < $Res >
2022-01-12 14:49:04 +03:00
implements $DeviceNodeCopyWith < $Res > {
2023-11-15 10:56:52 +03:00
factory _ $ $NfcReaderNodeImplCopyWith (
_ $NfcReaderNodeImpl value , $Res Function ( _ $NfcReaderNodeImpl ) then ) =
__ $ $NfcReaderNodeImplCopyWithImpl < $Res > ;
2022-01-12 14:49:04 +03:00
@ override
2022-10-19 12:15:48 +03:00
@ useResult
2022-02-08 15:44:35 +03:00
$Res call ( { DevicePath path , String name } ) ;
2022-01-12 14:49:04 +03:00
}
/// @nodoc
2023-11-15 10:56:52 +03:00
class __ $ $NfcReaderNodeImplCopyWithImpl < $Res >
extends _ $DeviceNodeCopyWithImpl < $Res , _ $NfcReaderNodeImpl >
implements _ $ $NfcReaderNodeImplCopyWith < $Res > {
__ $ $NfcReaderNodeImplCopyWithImpl (
_ $NfcReaderNodeImpl _value , $Res Function ( _ $NfcReaderNodeImpl ) _then )
2022-10-19 12:15:48 +03:00
: super ( _value , _then ) ;
2021-11-19 17:05:57 +03:00
2022-10-19 12:15:48 +03:00
@ pragma ( ' vm:prefer-inline ' )
2021-11-19 17:05:57 +03:00
@ override
$Res call ( {
2022-10-19 12:15:48 +03:00
Object ? path = null ,
Object ? name = null ,
2021-11-19 17:05:57 +03:00
} ) {
2023-11-15 10:56:52 +03:00
return _then ( _ $NfcReaderNodeImpl (
2022-10-19 12:15:48 +03:00
null = = path
2021-11-19 17:05:57 +03:00
? _value . path
: path // ignore: cast_nullable_to_non_nullable
2022-02-08 15:44:35 +03:00
as DevicePath ,
2022-10-19 12:15:48 +03:00
null = = name
2021-11-19 17:05:57 +03:00
? _value . name
: name // ignore: cast_nullable_to_non_nullable
as String ,
) ) ;
}
}
/// @nodoc
2023-11-15 10:56:52 +03:00
class _ $NfcReaderNodeImpl extends NfcReaderNode {
_ $NfcReaderNodeImpl ( this . path , this . name ) : super . _ ( ) ;
2021-11-19 17:05:57 +03:00
@ override
2022-02-08 15:44:35 +03:00
final DevicePath path ;
2021-11-19 17:05:57 +03:00
@ override
final String name ;
@ override
String toString ( ) {
2022-01-12 14:49:04 +03:00
return ' DeviceNode.nfcReader(path: $ path , name: $ name ) ' ;
2021-11-19 17:05:57 +03:00
}
@ override
2024-01-24 11:36:33 +03:00
bool operator = = ( Object other ) {
2021-11-19 17:05:57 +03:00
return identical ( this , other ) | |
( other . runtimeType = = runtimeType & &
2023-11-15 10:56:52 +03:00
other is _ $NfcReaderNodeImpl & &
2022-10-19 12:15:48 +03:00
( identical ( other . path , path ) | | other . path = = path ) & &
( identical ( other . name , name ) | | other . name = = name ) ) ;
2021-11-19 17:05:57 +03:00
}
@ override
2022-10-19 12:15:48 +03:00
int get hashCode = > Object . hash ( runtimeType , path , name ) ;
2021-11-19 17:05:57 +03:00
@ JsonKey ( ignore: true )
@ override
2022-10-19 12:15:48 +03:00
@ pragma ( ' vm:prefer-inline ' )
2023-11-15 10:56:52 +03:00
_ $ $NfcReaderNodeImplCopyWith < _ $NfcReaderNodeImpl > get copyWith = >
__ $ $NfcReaderNodeImplCopyWithImpl < _ $NfcReaderNodeImpl > ( this , _ $identity ) ;
2021-11-19 17:05:57 +03:00
@ override
2022-01-12 14:49:04 +03:00
@ optionalTypeArgs
TResult when < TResult extends Object ? > ( {
required TResult Function (
2022-03-16 14:43:56 +03:00
DevicePath path , String name , UsbPid pid , DeviceInfo ? info )
2022-01-12 14:49:04 +03:00
usbYubiKey ,
2022-02-08 15:44:35 +03:00
required TResult Function ( DevicePath path , String name ) nfcReader ,
2022-01-12 14:49:04 +03:00
} ) {
return nfcReader ( path , name ) ;
}
@ override
@ optionalTypeArgs
TResult ? whenOrNull < TResult extends Object ? > ( {
2022-10-19 12:15:48 +03:00
TResult ? Function (
2022-03-16 14:43:56 +03:00
DevicePath path , String name , UsbPid pid , DeviceInfo ? info ) ?
2022-01-12 14:49:04 +03:00
usbYubiKey ,
2022-10-19 12:15:48 +03:00
TResult ? Function ( DevicePath path , String name ) ? nfcReader ,
2022-01-12 14:49:04 +03:00
} ) {
return nfcReader ? . call ( path , name ) ;
2021-11-19 17:05:57 +03:00
}
2022-01-12 14:49:04 +03:00
@ override
@ optionalTypeArgs
TResult maybeWhen < TResult extends Object ? > ( {
2022-03-16 14:43:56 +03:00
TResult Function (
DevicePath path , String name , UsbPid pid , DeviceInfo ? info ) ?
2022-01-12 14:49:04 +03:00
usbYubiKey ,
2022-02-08 15:44:35 +03:00
TResult Function ( DevicePath path , String name ) ? nfcReader ,
2022-01-12 14:49:04 +03:00
required TResult orElse ( ) ,
} ) {
if ( nfcReader ! = null ) {
return nfcReader ( path , name ) ;
}
return orElse ( ) ;
}
2021-11-19 17:05:57 +03:00
2022-01-12 14:49:04 +03:00
@ override
@ optionalTypeArgs
TResult map < TResult extends Object ? > ( {
required TResult Function ( UsbYubiKeyNode value ) usbYubiKey ,
required TResult Function ( NfcReaderNode value ) nfcReader ,
} ) {
return nfcReader ( this ) ;
}
2021-11-19 17:05:57 +03:00
@ override
2022-01-12 14:49:04 +03:00
@ optionalTypeArgs
TResult ? mapOrNull < TResult extends Object ? > ( {
2022-10-19 12:15:48 +03:00
TResult ? Function ( UsbYubiKeyNode value ) ? usbYubiKey ,
TResult ? Function ( NfcReaderNode value ) ? nfcReader ,
2022-01-12 14:49:04 +03:00
} ) {
return nfcReader ? . call ( this ) ;
}
2021-11-19 17:05:57 +03:00
@ override
2022-01-12 14:49:04 +03:00
@ optionalTypeArgs
TResult maybeMap < TResult extends Object ? > ( {
TResult Function ( UsbYubiKeyNode value ) ? usbYubiKey ,
TResult Function ( NfcReaderNode value ) ? nfcReader ,
required TResult orElse ( ) ,
} ) {
if ( nfcReader ! = null ) {
return nfcReader ( this ) ;
}
return orElse ( ) ;
}
}
2022-03-07 11:57:29 +03:00
abstract class NfcReaderNode extends DeviceNode {
2022-05-12 12:06:28 +03:00
factory NfcReaderNode ( final DevicePath path , final String name ) =
2023-11-15 10:56:52 +03:00
_ $NfcReaderNodeImpl ;
2022-03-07 11:57:29 +03:00
NfcReaderNode . _ ( ) : super . _ ( ) ;
2022-01-12 14:49:04 +03:00
2021-11-19 17:05:57 +03:00
@ override
2022-07-07 11:29:42 +03:00
DevicePath get path ;
2021-11-19 17:05:57 +03:00
@ override
2022-07-07 11:29:42 +03:00
String get name ;
2021-11-19 17:05:57 +03:00
@ override
@ JsonKey ( ignore: true )
2023-11-15 10:56:52 +03:00
_ $ $NfcReaderNodeImplCopyWith < _ $NfcReaderNodeImpl > get copyWith = >
2021-11-19 17:05:57 +03:00
throw _privateConstructorUsedError ;
}
2021-12-02 13:44:17 +03:00
/// @nodoc
2023-06-15 18:39:17 +03:00
mixin _ $ActionItem {
2022-03-03 15:55:07 +03:00
Widget get icon = > throw _privateConstructorUsedError ;
2023-06-15 18:39:17 +03:00
String get title = > throw _privateConstructorUsedError ;
String ? get subtitle = > throw _privateConstructorUsedError ;
String ? get shortcut = > throw _privateConstructorUsedError ;
Widget ? get trailing = > throw _privateConstructorUsedError ;
2023-02-10 19:37:42 +03:00
Intent ? get intent = > throw _privateConstructorUsedError ;
2023-06-15 18:39:17 +03:00
ActionStyle ? get actionStyle = > throw _privateConstructorUsedError ;
Key ? get key = > throw _privateConstructorUsedError ;
2023-09-29 15:12:11 +03:00
Feature ? get feature = > throw _privateConstructorUsedError ;
2021-12-02 13:44:17 +03:00
@ JsonKey ( ignore: true )
2023-06-15 18:39:17 +03:00
$ActionItemCopyWith < ActionItem > get copyWith = >
2021-12-02 13:44:17 +03:00
throw _privateConstructorUsedError ;
}
/// @nodoc
2023-06-15 18:39:17 +03:00
abstract class $ActionItemCopyWith < $Res > {
factory $ActionItemCopyWith (
ActionItem value , $Res Function ( ActionItem ) then ) =
_ $ActionItemCopyWithImpl < $Res , ActionItem > ;
2022-10-19 12:15:48 +03:00
@ useResult
2023-06-15 18:39:17 +03:00
$Res call (
{ Widget icon ,
String title ,
String ? subtitle ,
String ? shortcut ,
Widget ? trailing ,
Intent ? intent ,
ActionStyle ? actionStyle ,
2023-09-29 15:12:11 +03:00
Key ? key ,
Feature ? feature } ) ;
2021-12-02 13:44:17 +03:00
}
/// @nodoc
2023-06-15 18:39:17 +03:00
class _ $ActionItemCopyWithImpl < $Res , $Val extends ActionItem >
implements $ActionItemCopyWith < $Res > {
_ $ActionItemCopyWithImpl ( this . _value , this . _then ) ;
2021-12-02 13:44:17 +03:00
// ignore: unused_field
2022-10-19 12:15:48 +03:00
final $Val _value ;
// ignore: unused_field
final $Res Function ( $Val ) _then ;
2021-12-02 13:44:17 +03:00
2022-10-19 12:15:48 +03:00
@ pragma ( ' vm:prefer-inline ' )
2021-12-02 13:44:17 +03:00
@ override
$Res call ( {
2022-10-19 12:15:48 +03:00
Object ? icon = null ,
2023-06-15 18:39:17 +03:00
Object ? title = null ,
Object ? subtitle = freezed ,
Object ? shortcut = freezed ,
2022-09-28 18:31:17 +03:00
Object ? trailing = freezed ,
2023-02-10 19:37:42 +03:00
Object ? intent = freezed ,
2023-06-15 18:39:17 +03:00
Object ? actionStyle = freezed ,
Object ? key = freezed ,
2023-09-29 15:12:11 +03:00
Object ? feature = freezed ,
2021-12-02 13:44:17 +03:00
} ) {
return _then ( _value . copyWith (
2022-10-19 12:15:48 +03:00
icon: null = = icon
2021-12-02 13:44:17 +03:00
? _value . icon
: icon // ignore: cast_nullable_to_non_nullable
2022-03-03 15:55:07 +03:00
as Widget ,
2023-06-15 18:39:17 +03:00
title: null = = title
? _value . title
: title // ignore: cast_nullable_to_non_nullable
as String ,
subtitle: freezed = = subtitle
? _value . subtitle
: subtitle // ignore: cast_nullable_to_non_nullable
as String ? ,
shortcut: freezed = = shortcut
? _value . shortcut
: shortcut // ignore: cast_nullable_to_non_nullable
as String ? ,
2022-10-19 12:15:48 +03:00
trailing: freezed = = trailing
2022-09-28 18:31:17 +03:00
? _value . trailing
: trailing // ignore: cast_nullable_to_non_nullable
2023-06-15 18:39:17 +03:00
as Widget ? ,
2023-02-10 19:37:42 +03:00
intent: freezed = = intent
? _value . intent
: intent // ignore: cast_nullable_to_non_nullable
as Intent ? ,
2023-06-15 18:39:17 +03:00
actionStyle: freezed = = actionStyle
? _value . actionStyle
: actionStyle // ignore: cast_nullable_to_non_nullable
as ActionStyle ? ,
key: freezed = = key
? _value . key
: key // ignore: cast_nullable_to_non_nullable
as Key ? ,
2023-09-29 15:12:11 +03:00
feature: freezed = = feature
? _value . feature
: feature // ignore: cast_nullable_to_non_nullable
as Feature ? ,
2022-10-19 12:15:48 +03:00
) as $Val ) ;
2021-12-02 13:44:17 +03:00
}
}
/// @nodoc
2023-11-15 10:56:52 +03:00
abstract class _ $ $ActionItemImplCopyWith < $Res >
2023-06-15 18:39:17 +03:00
implements $ActionItemCopyWith < $Res > {
2023-11-15 10:56:52 +03:00
factory _ $ $ActionItemImplCopyWith (
_ $ActionItemImpl value , $Res Function ( _ $ActionItemImpl ) then ) =
__ $ $ActionItemImplCopyWithImpl < $Res > ;
2021-12-02 13:44:17 +03:00
@ override
2022-10-19 12:15:48 +03:00
@ useResult
2023-06-15 18:39:17 +03:00
$Res call (
{ Widget icon ,
String title ,
String ? subtitle ,
String ? shortcut ,
Widget ? trailing ,
Intent ? intent ,
ActionStyle ? actionStyle ,
2023-09-29 15:12:11 +03:00
Key ? key ,
Feature ? feature } ) ;
2021-12-02 13:44:17 +03:00
}
/// @nodoc
2023-11-15 10:56:52 +03:00
class __ $ $ActionItemImplCopyWithImpl < $Res >
extends _ $ActionItemCopyWithImpl < $Res , _ $ActionItemImpl >
implements _ $ $ActionItemImplCopyWith < $Res > {
__ $ $ActionItemImplCopyWithImpl (
_ $ActionItemImpl _value , $Res Function ( _ $ActionItemImpl ) _then )
2022-10-19 12:15:48 +03:00
: super ( _value , _then ) ;
2021-12-02 13:44:17 +03:00
2022-10-19 12:15:48 +03:00
@ pragma ( ' vm:prefer-inline ' )
2021-12-02 13:44:17 +03:00
@ override
$Res call ( {
2022-10-19 12:15:48 +03:00
Object ? icon = null ,
2023-06-15 18:39:17 +03:00
Object ? title = null ,
Object ? subtitle = freezed ,
Object ? shortcut = freezed ,
2022-09-28 18:31:17 +03:00
Object ? trailing = freezed ,
2023-02-10 19:37:42 +03:00
Object ? intent = freezed ,
2023-06-15 18:39:17 +03:00
Object ? actionStyle = freezed ,
Object ? key = freezed ,
2023-09-29 15:12:11 +03:00
Object ? feature = freezed ,
2021-12-02 13:44:17 +03:00
} ) {
2023-11-15 10:56:52 +03:00
return _then ( _ $ActionItemImpl (
2022-10-19 12:15:48 +03:00
icon: null = = icon
2021-12-02 13:44:17 +03:00
? _value . icon
: icon // ignore: cast_nullable_to_non_nullable
2022-03-03 15:55:07 +03:00
as Widget ,
2023-06-15 18:39:17 +03:00
title: null = = title
? _value . title
: title // ignore: cast_nullable_to_non_nullable
as String ,
subtitle: freezed = = subtitle
? _value . subtitle
: subtitle // ignore: cast_nullable_to_non_nullable
as String ? ,
shortcut: freezed = = shortcut
? _value . shortcut
: shortcut // ignore: cast_nullable_to_non_nullable
as String ? ,
2022-10-19 12:15:48 +03:00
trailing: freezed = = trailing
2022-09-28 18:31:17 +03:00
? _value . trailing
: trailing // ignore: cast_nullable_to_non_nullable
2023-06-15 18:39:17 +03:00
as Widget ? ,
2023-02-10 19:37:42 +03:00
intent: freezed = = intent
? _value . intent
: intent // ignore: cast_nullable_to_non_nullable
as Intent ? ,
2023-06-15 18:39:17 +03:00
actionStyle: freezed = = actionStyle
? _value . actionStyle
: actionStyle // ignore: cast_nullable_to_non_nullable
as ActionStyle ? ,
key: freezed = = key
? _value . key
: key // ignore: cast_nullable_to_non_nullable
as Key ? ,
2023-09-29 15:12:11 +03:00
feature: freezed = = feature
? _value . feature
: feature // ignore: cast_nullable_to_non_nullable
as Feature ? ,
2021-12-02 13:44:17 +03:00
) ) ;
}
}
/// @nodoc
2023-11-15 10:56:52 +03:00
class _ $ActionItemImpl implements _ActionItem {
_ $ActionItemImpl (
2023-06-15 18:39:17 +03:00
{ required this . icon ,
required this . title ,
this . subtitle ,
this . shortcut ,
this . trailing ,
this . intent ,
this . actionStyle ,
2023-09-29 15:12:11 +03:00
this . key ,
this . feature } ) ;
2021-12-02 13:44:17 +03:00
@ override
2022-03-03 15:55:07 +03:00
final Widget icon ;
2021-12-02 13:44:17 +03:00
@ override
2023-06-15 18:39:17 +03:00
final String title ;
@ override
final String ? subtitle ;
@ override
final String ? shortcut ;
@ override
final Widget ? trailing ;
2022-09-28 18:31:17 +03:00
@ override
2023-02-10 19:37:42 +03:00
final Intent ? intent ;
2023-06-15 18:39:17 +03:00
@ override
final ActionStyle ? actionStyle ;
@ override
final Key ? key ;
2023-09-29 15:12:11 +03:00
@ override
final Feature ? feature ;
2021-12-02 13:44:17 +03:00
@ override
String toString ( ) {
2023-09-29 15:12:11 +03:00
return ' ActionItem(icon: $ icon , title: $ title , subtitle: $ subtitle , shortcut: $ shortcut , trailing: $ trailing , intent: $ intent , actionStyle: $ actionStyle , key: $ key , feature: $ feature ) ' ;
2021-12-02 13:44:17 +03:00
}
@ override
2024-01-24 11:36:33 +03:00
bool operator = = ( Object other ) {
2021-12-02 13:44:17 +03:00
return identical ( this , other ) | |
( other . runtimeType = = runtimeType & &
2023-11-15 10:56:52 +03:00
other is _ $ActionItemImpl & &
2022-10-19 12:15:48 +03:00
( identical ( other . icon , icon ) | | other . icon = = icon ) & &
2023-06-15 18:39:17 +03:00
( identical ( other . title , title ) | | other . title = = title ) & &
( identical ( other . subtitle , subtitle ) | |
other . subtitle = = subtitle ) & &
( identical ( other . shortcut , shortcut ) | |
other . shortcut = = shortcut ) & &
2022-10-19 12:15:48 +03:00
( identical ( other . trailing , trailing ) | |
other . trailing = = trailing ) & &
2023-06-15 18:39:17 +03:00
( identical ( other . intent , intent ) | | other . intent = = intent ) & &
( identical ( other . actionStyle , actionStyle ) | |
other . actionStyle = = actionStyle ) & &
2023-09-29 15:12:11 +03:00
( identical ( other . key , key ) | | other . key = = key ) & &
( identical ( other . feature , feature ) | | other . feature = = feature ) ) ;
2021-12-02 13:44:17 +03:00
}
@ override
2023-06-15 18:39:17 +03:00
int get hashCode = > Object . hash ( runtimeType , icon , title , subtitle , shortcut ,
2023-09-29 15:12:11 +03:00
trailing , intent , actionStyle , key , feature ) ;
2021-12-02 13:44:17 +03:00
@ JsonKey ( ignore: true )
@ override
2022-10-19 12:15:48 +03:00
@ pragma ( ' vm:prefer-inline ' )
2023-11-15 10:56:52 +03:00
_ $ $ActionItemImplCopyWith < _ $ActionItemImpl > get copyWith = >
__ $ $ActionItemImplCopyWithImpl < _ $ActionItemImpl > ( this , _ $identity ) ;
2021-12-02 13:44:17 +03:00
}
2023-06-15 18:39:17 +03:00
abstract class _ActionItem implements ActionItem {
factory _ActionItem (
{ required final Widget icon ,
required final String title ,
final String ? subtitle ,
final String ? shortcut ,
final Widget ? trailing ,
final Intent ? intent ,
final ActionStyle ? actionStyle ,
2023-09-29 15:12:11 +03:00
final Key ? key ,
2023-11-15 10:56:52 +03:00
final Feature ? feature } ) = _ $ActionItemImpl ;
2021-12-02 13:44:17 +03:00
@ override
2022-07-07 11:29:42 +03:00
Widget get icon ;
2021-12-02 13:44:17 +03:00
@ override
2023-06-15 18:39:17 +03:00
String get title ;
@ override
String ? get subtitle ;
@ override
String ? get shortcut ;
@ override
Widget ? get trailing ;
2022-09-28 18:31:17 +03:00
@ override
2023-02-10 19:37:42 +03:00
Intent ? get intent ;
2021-12-02 13:44:17 +03:00
@ override
2023-06-15 18:39:17 +03:00
ActionStyle ? get actionStyle ;
@ override
Key ? get key ;
@ override
2023-09-29 15:12:11 +03:00
Feature ? get feature ;
@ override
2021-12-02 13:44:17 +03:00
@ JsonKey ( ignore: true )
2023-11-15 10:56:52 +03:00
_ $ $ActionItemImplCopyWith < _ $ActionItemImpl > get copyWith = >
2021-12-02 13:44:17 +03:00
throw _privateConstructorUsedError ;
}
2021-12-03 12:27:29 +03:00
/// @nodoc
mixin _ $WindowState {
bool get focused = > throw _privateConstructorUsedError ;
bool get visible = > throw _privateConstructorUsedError ;
bool get active = > throw _privateConstructorUsedError ;
2023-02-24 16:10:39 +03:00
bool get hidden = > throw _privateConstructorUsedError ;
2021-12-03 12:27:29 +03:00
@ JsonKey ( ignore: true )
$WindowStateCopyWith < WindowState > get copyWith = >
throw _privateConstructorUsedError ;
}
/// @nodoc
abstract class $WindowStateCopyWith < $Res > {
factory $WindowStateCopyWith (
WindowState value , $Res Function ( WindowState ) then ) =
2022-10-19 12:15:48 +03:00
_ $WindowStateCopyWithImpl < $Res , WindowState > ;
@ useResult
2023-02-24 16:10:39 +03:00
$Res call ( { bool focused , bool visible , bool active , bool hidden } ) ;
2021-12-03 12:27:29 +03:00
}
/// @nodoc
2022-10-19 12:15:48 +03:00
class _ $WindowStateCopyWithImpl < $Res , $Val extends WindowState >
implements $WindowStateCopyWith < $Res > {
2021-12-03 12:27:29 +03:00
_ $WindowStateCopyWithImpl ( this . _value , this . _then ) ;
// ignore: unused_field
2022-10-19 12:15:48 +03:00
final $Val _value ;
// ignore: unused_field
final $Res Function ( $Val ) _then ;
2021-12-03 12:27:29 +03:00
2022-10-19 12:15:48 +03:00
@ pragma ( ' vm:prefer-inline ' )
2021-12-03 12:27:29 +03:00
@ override
$Res call ( {
2022-10-19 12:15:48 +03:00
Object ? focused = null ,
Object ? visible = null ,
Object ? active = null ,
2023-02-24 16:10:39 +03:00
Object ? hidden = null ,
2021-12-03 12:27:29 +03:00
} ) {
return _then ( _value . copyWith (
2022-10-19 12:15:48 +03:00
focused: null = = focused
2021-12-03 12:27:29 +03:00
? _value . focused
: focused // ignore: cast_nullable_to_non_nullable
as bool ,
2022-10-19 12:15:48 +03:00
visible: null = = visible
2021-12-03 12:27:29 +03:00
? _value . visible
: visible // ignore: cast_nullable_to_non_nullable
as bool ,
2022-10-19 12:15:48 +03:00
active: null = = active
2021-12-03 12:27:29 +03:00
? _value . active
: active // ignore: cast_nullable_to_non_nullable
as bool ,
2023-02-24 16:10:39 +03:00
hidden: null = = hidden
? _value . hidden
: hidden // ignore: cast_nullable_to_non_nullable
as bool ,
2022-10-19 12:15:48 +03:00
) as $Val ) ;
2021-12-03 12:27:29 +03:00
}
}
/// @nodoc
2023-11-15 10:56:52 +03:00
abstract class _ $ $WindowStateImplCopyWith < $Res >
2021-12-03 12:27:29 +03:00
implements $WindowStateCopyWith < $Res > {
2023-11-15 10:56:52 +03:00
factory _ $ $WindowStateImplCopyWith (
_ $WindowStateImpl value , $Res Function ( _ $WindowStateImpl ) then ) =
__ $ $WindowStateImplCopyWithImpl < $Res > ;
2021-12-03 12:27:29 +03:00
@ override
2022-10-19 12:15:48 +03:00
@ useResult
2023-02-24 16:10:39 +03:00
$Res call ( { bool focused , bool visible , bool active , bool hidden } ) ;
2021-12-03 12:27:29 +03:00
}
/// @nodoc
2023-11-15 10:56:52 +03:00
class __ $ $WindowStateImplCopyWithImpl < $Res >
extends _ $WindowStateCopyWithImpl < $Res , _ $WindowStateImpl >
implements _ $ $WindowStateImplCopyWith < $Res > {
__ $ $WindowStateImplCopyWithImpl (
_ $WindowStateImpl _value , $Res Function ( _ $WindowStateImpl ) _then )
2022-10-19 12:15:48 +03:00
: super ( _value , _then ) ;
2021-12-03 12:27:29 +03:00
2022-10-19 12:15:48 +03:00
@ pragma ( ' vm:prefer-inline ' )
2021-12-03 12:27:29 +03:00
@ override
$Res call ( {
2022-10-19 12:15:48 +03:00
Object ? focused = null ,
Object ? visible = null ,
Object ? active = null ,
2023-02-24 16:10:39 +03:00
Object ? hidden = null ,
2021-12-03 12:27:29 +03:00
} ) {
2023-11-15 10:56:52 +03:00
return _then ( _ $WindowStateImpl (
2022-10-19 12:15:48 +03:00
focused: null = = focused
2021-12-03 12:27:29 +03:00
? _value . focused
: focused // ignore: cast_nullable_to_non_nullable
as bool ,
2022-10-19 12:15:48 +03:00
visible: null = = visible
2021-12-03 12:27:29 +03:00
? _value . visible
: visible // ignore: cast_nullable_to_non_nullable
as bool ,
2022-10-19 12:15:48 +03:00
active: null = = active
2021-12-03 12:27:29 +03:00
? _value . active
: active // ignore: cast_nullable_to_non_nullable
as bool ,
2023-02-24 16:10:39 +03:00
hidden: null = = hidden
? _value . hidden
: hidden // ignore: cast_nullable_to_non_nullable
as bool ,
2021-12-03 12:27:29 +03:00
) ) ;
}
}
/// @nodoc
2023-11-15 10:56:52 +03:00
class _ $WindowStateImpl implements _WindowState {
_ $WindowStateImpl (
2023-02-24 16:10:39 +03:00
{ required this . focused ,
required this . visible ,
required this . active ,
this . hidden = false } ) ;
2021-12-03 12:27:29 +03:00
@ override
final bool focused ;
@ override
final bool visible ;
@ override
final bool active ;
2023-02-24 16:10:39 +03:00
@ override
@ JsonKey ( )
final bool hidden ;
2021-12-03 12:27:29 +03:00
@ override
String toString ( ) {
2023-02-24 16:10:39 +03:00
return ' WindowState(focused: $ focused , visible: $ visible , active: $ active , hidden: $ hidden ) ' ;
2021-12-03 12:27:29 +03:00
}
@ override
2024-01-24 11:36:33 +03:00
bool operator = = ( Object other ) {
2021-12-03 12:27:29 +03:00
return identical ( this , other ) | |
( other . runtimeType = = runtimeType & &
2023-11-15 10:56:52 +03:00
other is _ $WindowStateImpl & &
2022-10-19 12:15:48 +03:00
( identical ( other . focused , focused ) | | other . focused = = focused ) & &
( identical ( other . visible , visible ) | | other . visible = = visible ) & &
2023-02-24 16:10:39 +03:00
( identical ( other . active , active ) | | other . active = = active ) & &
( identical ( other . hidden , hidden ) | | other . hidden = = hidden ) ) ;
2021-12-03 12:27:29 +03:00
}
@ override
2023-02-24 16:10:39 +03:00
int get hashCode = >
Object . hash ( runtimeType , focused , visible , active , hidden ) ;
2021-12-03 12:27:29 +03:00
@ JsonKey ( ignore: true )
@ override
2022-10-19 12:15:48 +03:00
@ pragma ( ' vm:prefer-inline ' )
2023-11-15 10:56:52 +03:00
_ $ $WindowStateImplCopyWith < _ $WindowStateImpl > get copyWith = >
__ $ $WindowStateImplCopyWithImpl < _ $WindowStateImpl > ( this , _ $identity ) ;
2021-12-03 12:27:29 +03:00
}
abstract class _WindowState implements WindowState {
factory _WindowState (
2022-05-12 12:06:28 +03:00
{ required final bool focused ,
required final bool visible ,
2023-02-24 16:10:39 +03:00
required final bool active ,
2023-11-15 10:56:52 +03:00
final bool hidden } ) = _ $WindowStateImpl ;
2021-12-03 12:27:29 +03:00
@ override
2022-07-07 11:29:42 +03:00
bool get focused ;
2021-12-03 12:27:29 +03:00
@ override
2022-07-07 11:29:42 +03:00
bool get visible ;
2021-12-03 12:27:29 +03:00
@ override
2022-07-07 11:29:42 +03:00
bool get active ;
2021-12-03 12:27:29 +03:00
@ override
2023-02-24 16:10:39 +03:00
bool get hidden ;
@ override
2021-12-03 12:27:29 +03:00
@ JsonKey ( ignore: true )
2023-11-15 10:56:52 +03:00
_ $ $WindowStateImplCopyWith < _ $WindowStateImpl > get copyWith = >
2021-12-03 12:27:29 +03:00
throw _privateConstructorUsedError ;
}
2024-03-06 23:06:48 +03:00
KeyCustomization _ $KeyCustomizationFromJson ( Map < String , dynamic > json ) {
return _KeyCustomization . fromJson ( json ) ;
}
/// @nodoc
mixin _ $KeyCustomization {
int get serial = > throw _privateConstructorUsedError ;
@ JsonKey ( includeIfNull: false )
String ? get name = > throw _privateConstructorUsedError ;
@ JsonKey ( includeIfNull: false )
@ _ColorConverter ( )
Color ? get color = > throw _privateConstructorUsedError ;
Map < String , dynamic > toJson ( ) = > throw _privateConstructorUsedError ;
@ JsonKey ( ignore: true )
$KeyCustomizationCopyWith < KeyCustomization > get copyWith = >
throw _privateConstructorUsedError ;
}
/// @nodoc
abstract class $KeyCustomizationCopyWith < $Res > {
factory $KeyCustomizationCopyWith (
KeyCustomization value , $Res Function ( KeyCustomization ) then ) =
_ $KeyCustomizationCopyWithImpl < $Res , KeyCustomization > ;
@ useResult
$Res call (
{ int serial ,
@ JsonKey ( includeIfNull: false ) String ? name ,
@ JsonKey ( includeIfNull: false ) @ _ColorConverter ( ) Color ? color } ) ;
}
/// @nodoc
class _ $KeyCustomizationCopyWithImpl < $Res , $Val extends KeyCustomization >
implements $KeyCustomizationCopyWith < $Res > {
_ $KeyCustomizationCopyWithImpl ( 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 ? serial = null ,
Object ? name = freezed ,
Object ? color = freezed ,
} ) {
return _then ( _value . copyWith (
serial: null = = serial
? _value . serial
: serial // ignore: cast_nullable_to_non_nullable
as int ,
name: freezed = = name
? _value . name
: name // ignore: cast_nullable_to_non_nullable
as String ? ,
color: freezed = = color
? _value . color
: color // ignore: cast_nullable_to_non_nullable
as Color ? ,
) as $Val ) ;
}
}
/// @nodoc
abstract class _ $ $KeyCustomizationImplCopyWith < $Res >
implements $KeyCustomizationCopyWith < $Res > {
factory _ $ $KeyCustomizationImplCopyWith ( _ $KeyCustomizationImpl value ,
$Res Function ( _ $KeyCustomizationImpl ) then ) =
__ $ $KeyCustomizationImplCopyWithImpl < $Res > ;
@ override
@ useResult
$Res call (
{ int serial ,
@ JsonKey ( includeIfNull: false ) String ? name ,
@ JsonKey ( includeIfNull: false ) @ _ColorConverter ( ) Color ? color } ) ;
}
/// @nodoc
class __ $ $KeyCustomizationImplCopyWithImpl < $Res >
extends _ $KeyCustomizationCopyWithImpl < $Res , _ $KeyCustomizationImpl >
implements _ $ $KeyCustomizationImplCopyWith < $Res > {
__ $ $KeyCustomizationImplCopyWithImpl ( _ $KeyCustomizationImpl _value ,
$Res Function ( _ $KeyCustomizationImpl ) _then )
: super ( _value , _then ) ;
@ pragma ( ' vm:prefer-inline ' )
@ override
$Res call ( {
Object ? serial = null ,
Object ? name = freezed ,
Object ? color = freezed ,
} ) {
return _then ( _ $KeyCustomizationImpl (
serial: null = = serial
? _value . serial
: serial // ignore: cast_nullable_to_non_nullable
as int ,
name: freezed = = name
? _value . name
: name // ignore: cast_nullable_to_non_nullable
as String ? ,
color: freezed = = color
? _value . color
: color // ignore: cast_nullable_to_non_nullable
as Color ? ,
) ) ;
}
}
/// @nodoc
@ JsonSerializable ( )
class _ $KeyCustomizationImpl implements _KeyCustomization {
_ $KeyCustomizationImpl (
{ required this . serial ,
@ JsonKey ( includeIfNull: false ) this . name ,
@ JsonKey ( includeIfNull: false ) @ _ColorConverter ( ) this . color } ) ;
factory _ $KeyCustomizationImpl . fromJson ( Map < String , dynamic > json ) = >
_ $ $KeyCustomizationImplFromJson ( json ) ;
@ override
final int serial ;
@ override
@ JsonKey ( includeIfNull: false )
final String ? name ;
@ override
@ JsonKey ( includeIfNull: false )
@ _ColorConverter ( )
final Color ? color ;
@ override
String toString ( ) {
return ' KeyCustomization(serial: $ serial , name: $ name , color: $ color ) ' ;
}
@ override
bool operator = = ( Object other ) {
return identical ( this , other ) | |
( other . runtimeType = = runtimeType & &
other is _ $KeyCustomizationImpl & &
( identical ( other . serial , serial ) | | other . serial = = serial ) & &
( identical ( other . name , name ) | | other . name = = name ) & &
( identical ( other . color , color ) | | other . color = = color ) ) ;
}
@ JsonKey ( ignore: true )
@ override
int get hashCode = > Object . hash ( runtimeType , serial , name , color ) ;
@ JsonKey ( ignore: true )
@ override
@ pragma ( ' vm:prefer-inline ' )
_ $ $KeyCustomizationImplCopyWith < _ $KeyCustomizationImpl > get copyWith = >
__ $ $KeyCustomizationImplCopyWithImpl < _ $KeyCustomizationImpl > (
this , _ $identity ) ;
@ override
Map < String , dynamic > toJson ( ) {
return _ $ $KeyCustomizationImplToJson (
this ,
) ;
}
}
abstract class _KeyCustomization implements KeyCustomization {
factory _KeyCustomization (
{ required final int serial ,
@ JsonKey ( includeIfNull: false ) final String ? name ,
@ JsonKey ( includeIfNull: false )
@ _ColorConverter ( )
final Color ? color } ) = _ $KeyCustomizationImpl ;
factory _KeyCustomization . fromJson ( Map < String , dynamic > json ) =
_ $KeyCustomizationImpl . fromJson ;
@ override
int get serial ;
@ override
@ JsonKey ( includeIfNull: false )
String ? get name ;
@ override
@ JsonKey ( includeIfNull: false )
@ _ColorConverter ( )
Color ? get color ;
@ override
@ JsonKey ( ignore: true )
_ $ $KeyCustomizationImplCopyWith < _ $KeyCustomizationImpl > get copyWith = >
throw _privateConstructorUsedError ;
}