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
2021-11-19 17:05:57 +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
part of ' models.dart ' ;
// **************************************************************************
// FreezedGenerator
// **************************************************************************
T _ $identity < T > ( T value ) = > value ;
final _privateConstructorUsedError = UnsupportedError (
2022-05-12 12:06:28 +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#custom-getters-and-methods ' ) ;
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 ) =
_ $YubiKeyDataCopyWithImpl < $Res > ;
$Res call ( { DeviceNode node , String name , DeviceInfo info } ) ;
$DeviceNodeCopyWith < $Res > get node ;
$DeviceInfoCopyWith < $Res > get info ;
}
/// @nodoc
class _ $YubiKeyDataCopyWithImpl < $Res > implements $YubiKeyDataCopyWith < $Res > {
_ $YubiKeyDataCopyWithImpl ( this . _value , this . _then ) ;
final YubiKeyData _value ;
// ignore: unused_field
final $Res Function ( YubiKeyData ) _then ;
@ override
$Res call ( {
Object ? node = freezed ,
Object ? name = freezed ,
Object ? info = freezed ,
} ) {
return _then ( _value . copyWith (
node: node = = freezed
? _value . node
: node // ignore: cast_nullable_to_non_nullable
as DeviceNode ,
name: name = = freezed
? _value . name
: name // ignore: cast_nullable_to_non_nullable
as String ,
info: info = = freezed
? _value . info
: info // ignore: cast_nullable_to_non_nullable
as DeviceInfo ,
) ) ;
}
@ override
$DeviceNodeCopyWith < $Res > get node {
return $DeviceNodeCopyWith < $Res > ( _value . node , ( value ) {
return _then ( _value . copyWith ( node: value ) ) ;
} ) ;
}
@ override
$DeviceInfoCopyWith < $Res > get info {
return $DeviceInfoCopyWith < $Res > ( _value . info , ( value ) {
return _then ( _value . copyWith ( info: value ) ) ;
} ) ;
}
}
/// @nodoc
2022-05-12 12:06:28 +03:00
abstract class _ $ $_YubiKeyDataCopyWith < $Res >
2022-01-12 14:49:04 +03:00
implements $YubiKeyDataCopyWith < $Res > {
2022-05-12 12:06:28 +03:00
factory _ $ $_YubiKeyDataCopyWith (
_ $_YubiKeyData value , $Res Function ( _ $_YubiKeyData ) then ) =
__ $ $_YubiKeyDataCopyWithImpl < $Res > ;
2022-01-12 14:49:04 +03:00
@ override
$Res call ( { DeviceNode node , String name , DeviceInfo info } ) ;
@ override
$DeviceNodeCopyWith < $Res > get node ;
@ override
$DeviceInfoCopyWith < $Res > get info ;
}
/// @nodoc
2022-05-12 12:06:28 +03:00
class __ $ $_YubiKeyDataCopyWithImpl < $Res > extends _ $YubiKeyDataCopyWithImpl < $Res >
implements _ $ $_YubiKeyDataCopyWith < $Res > {
__ $ $_YubiKeyDataCopyWithImpl (
_ $_YubiKeyData _value , $Res Function ( _ $_YubiKeyData ) _then )
: super ( _value , ( v ) = > _then ( v as _ $_YubiKeyData ) ) ;
2022-01-12 14:49:04 +03:00
@ override
2022-05-12 12:06:28 +03:00
_ $_YubiKeyData get _value = > super . _value as _ $_YubiKeyData ;
2022-01-12 14:49:04 +03:00
@ override
$Res call ( {
Object ? node = freezed ,
Object ? name = freezed ,
Object ? info = freezed ,
} ) {
2022-05-12 12:06:28 +03:00
return _then ( _ $_YubiKeyData (
2022-01-12 14:49:04 +03:00
node = = freezed
? _value . node
: node // ignore: cast_nullable_to_non_nullable
as DeviceNode ,
name = = freezed
? _value . name
: name // ignore: cast_nullable_to_non_nullable
as String ,
info = = freezed
? _value . info
: info // ignore: cast_nullable_to_non_nullable
as DeviceInfo ,
) ) ;
}
}
/// @nodoc
class _ $_YubiKeyData implements _YubiKeyData {
_ $_YubiKeyData ( this . node , this . name , this . info ) ;
@ override
final DeviceNode node ;
@ override
final String name ;
@ override
final DeviceInfo info ;
@ override
String toString ( ) {
return ' YubiKeyData(node: $ node , name: $ name , info: $ info ) ' ;
}
@ override
bool operator = = ( dynamic other ) {
return identical ( this , other ) | |
( other . runtimeType = = runtimeType & &
2022-05-12 12:06:28 +03:00
other is _ $_YubiKeyData & &
2022-01-12 14:49:04 +03:00
const DeepCollectionEquality ( ) . equals ( other . node , node ) & &
const DeepCollectionEquality ( ) . equals ( other . name , name ) & &
const DeepCollectionEquality ( ) . equals ( other . info , info ) ) ;
}
@ override
int get hashCode = > Object . hash (
runtimeType ,
const DeepCollectionEquality ( ) . hash ( node ) ,
const DeepCollectionEquality ( ) . hash ( name ) ,
const DeepCollectionEquality ( ) . hash ( info ) ) ;
@ JsonKey ( ignore: true )
@ override
2022-05-12 12:06:28 +03:00
_ $ $_YubiKeyDataCopyWith < _ $_YubiKeyData > get copyWith = >
__ $ $_YubiKeyDataCopyWithImpl < _ $_YubiKeyData > ( 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 ) =
2022-01-12 14:49:04 +03:00
_ $_YubiKeyData ;
@ 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 )
2022-05-12 12:06:28 +03:00
_ $ $_YubiKeyDataCopyWith < _ $_YubiKeyData > 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-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
} ) = >
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 ? > ( {
TResult Function ( UsbYubiKeyNode value ) ? usbYubiKey ,
TResult Function ( NfcReaderNode value ) ? nfcReader ,
} ) = >
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 ) =
_ $DeviceNodeCopyWithImpl < $Res > ;
2022-02-08 15:44:35 +03:00
$Res call ( { DevicePath path , String name } ) ;
2021-11-19 17:05:57 +03:00
}
/// @nodoc
class _ $DeviceNodeCopyWithImpl < $Res > implements $DeviceNodeCopyWith < $Res > {
_ $DeviceNodeCopyWithImpl ( this . _value , this . _then ) ;
final DeviceNode _value ;
// ignore: unused_field
final $Res Function ( DeviceNode ) _then ;
@ override
$Res call ( {
Object ? path = freezed ,
Object ? name = freezed ,
} ) {
return _then ( _value . copyWith (
path: path = = freezed
? _value . path
: path // ignore: cast_nullable_to_non_nullable
2022-02-08 15:44:35 +03:00
as DevicePath ,
2021-11-19 17:05:57 +03:00
name: name = = freezed
? _value . name
: name // ignore: cast_nullable_to_non_nullable
as String ,
2022-01-12 14:49:04 +03:00
) ) ;
}
}
/// @nodoc
2022-05-12 12:06:28 +03:00
abstract class _ $ $UsbYubiKeyNodeCopyWith < $Res >
2022-01-12 14:49:04 +03:00
implements $DeviceNodeCopyWith < $Res > {
2022-05-12 12:06:28 +03:00
factory _ $ $UsbYubiKeyNodeCopyWith (
_ $UsbYubiKeyNode value , $Res Function ( _ $UsbYubiKeyNode ) then ) =
__ $ $UsbYubiKeyNodeCopyWithImpl < $Res > ;
2022-01-12 14:49:04 +03:00
@ override
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
2022-05-12 12:06:28 +03:00
class __ $ $UsbYubiKeyNodeCopyWithImpl < $Res >
extends _ $DeviceNodeCopyWithImpl < $Res >
implements _ $ $UsbYubiKeyNodeCopyWith < $Res > {
__ $ $UsbYubiKeyNodeCopyWithImpl (
_ $UsbYubiKeyNode _value , $Res Function ( _ $UsbYubiKeyNode ) _then )
: super ( _value , ( v ) = > _then ( v as _ $UsbYubiKeyNode ) ) ;
2022-01-12 14:49:04 +03:00
@ override
2022-05-12 12:06:28 +03:00
_ $UsbYubiKeyNode get _value = > super . _value as _ $UsbYubiKeyNode ;
2022-01-12 14:49:04 +03:00
@ override
$Res call ( {
Object ? path = freezed ,
Object ? name = freezed ,
Object ? pid = freezed ,
Object ? info = freezed ,
} ) {
2022-05-12 12:06:28 +03:00
return _then ( _ $UsbYubiKeyNode (
2022-01-12 14:49:04 +03:00
path = = freezed
? _value . path
: path // ignore: cast_nullable_to_non_nullable
2022-02-08 15:44:35 +03:00
as DevicePath ,
2022-01-12 14:49:04 +03:00
name = = freezed
? _value . name
: name // ignore: cast_nullable_to_non_nullable
as String ,
pid = = freezed
? _value . pid
: pid // ignore: cast_nullable_to_non_nullable
2022-03-16 14:43:56 +03:00
as UsbPid ,
2022-01-12 14:49:04 +03:00
info = = freezed
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-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
2022-03-07 11:57:29 +03:00
class _ $UsbYubiKeyNode extends UsbYubiKeyNode {
_ $UsbYubiKeyNode ( 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
2022-01-12 14:49:04 +03:00
bool operator = = ( dynamic other ) {
return identical ( this , other ) | |
( other . runtimeType = = runtimeType & &
2022-05-12 12:06:28 +03:00
other is _ $UsbYubiKeyNode & &
2022-01-12 14:49:04 +03:00
const DeepCollectionEquality ( ) . equals ( other . path , path ) & &
const DeepCollectionEquality ( ) . equals ( other . name , name ) & &
const DeepCollectionEquality ( ) . equals ( other . pid , pid ) & &
const DeepCollectionEquality ( ) . equals ( other . info , info ) ) ;
}
@ override
int get hashCode = > Object . hash (
runtimeType ,
const DeepCollectionEquality ( ) . hash ( path ) ,
const DeepCollectionEquality ( ) . hash ( name ) ,
const DeepCollectionEquality ( ) . hash ( pid ) ,
const DeepCollectionEquality ( ) . hash ( info ) ) ;
@ JsonKey ( ignore: true )
@ override
2022-05-12 12:06:28 +03:00
_ $ $UsbYubiKeyNodeCopyWith < _ $UsbYubiKeyNode > get copyWith = >
__ $ $UsbYubiKeyNodeCopyWithImpl < _ $UsbYubiKeyNode > ( 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-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
} ) {
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 ? > ( {
TResult Function ( UsbYubiKeyNode value ) ? usbYubiKey ,
TResult Function ( NfcReaderNode value ) ? nfcReader ,
} ) {
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 ,
final UsbPid pid , final DeviceInfo ? info ) = _ $UsbYubiKeyNode ;
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 )
2022-05-12 12:06:28 +03:00
_ $ $UsbYubiKeyNodeCopyWith < _ $UsbYubiKeyNode > get copyWith = >
2022-01-12 14:49:04 +03:00
throw _privateConstructorUsedError ;
2021-11-19 17:05:57 +03:00
}
/// @nodoc
2022-05-12 12:06:28 +03:00
abstract class _ $ $NfcReaderNodeCopyWith < $Res >
2022-01-12 14:49:04 +03:00
implements $DeviceNodeCopyWith < $Res > {
2022-05-12 12:06:28 +03:00
factory _ $ $NfcReaderNodeCopyWith (
_ $NfcReaderNode value , $Res Function ( _ $NfcReaderNode ) then ) =
__ $ $NfcReaderNodeCopyWithImpl < $Res > ;
2022-01-12 14:49:04 +03:00
@ override
2022-02-08 15:44:35 +03:00
$Res call ( { DevicePath path , String name } ) ;
2022-01-12 14:49:04 +03:00
}
/// @nodoc
2022-05-12 12:06:28 +03:00
class __ $ $NfcReaderNodeCopyWithImpl < $Res > extends _ $DeviceNodeCopyWithImpl < $Res >
implements _ $ $NfcReaderNodeCopyWith < $Res > {
__ $ $NfcReaderNodeCopyWithImpl (
_ $NfcReaderNode _value , $Res Function ( _ $NfcReaderNode ) _then )
: super ( _value , ( v ) = > _then ( v as _ $NfcReaderNode ) ) ;
2021-11-19 17:05:57 +03:00
@ override
2022-05-12 12:06:28 +03:00
_ $NfcReaderNode get _value = > super . _value as _ $NfcReaderNode ;
2021-11-19 17:05:57 +03:00
@ override
$Res call ( {
Object ? path = freezed ,
Object ? name = freezed ,
} ) {
2022-05-12 12:06:28 +03:00
return _then ( _ $NfcReaderNode (
2021-11-19 17:05:57 +03:00
path = = freezed
? _value . path
: path // ignore: cast_nullable_to_non_nullable
2022-02-08 15:44:35 +03:00
as DevicePath ,
2021-11-19 17:05:57 +03:00
name = = freezed
? _value . name
: name // ignore: cast_nullable_to_non_nullable
as String ,
) ) ;
}
}
/// @nodoc
2022-03-07 11:57:29 +03:00
class _ $NfcReaderNode extends NfcReaderNode {
_ $NfcReaderNode ( 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
bool operator = = ( dynamic other ) {
return identical ( this , other ) | |
( other . runtimeType = = runtimeType & &
2022-05-12 12:06:28 +03:00
other is _ $NfcReaderNode & &
2021-11-19 17:05:57 +03:00
const DeepCollectionEquality ( ) . equals ( other . path , path ) & &
2022-01-12 14:49:04 +03:00
const DeepCollectionEquality ( ) . equals ( other . name , name ) ) ;
2021-11-19 17:05:57 +03:00
}
@ override
2022-01-12 14:49:04 +03:00
int get hashCode = > Object . hash (
runtimeType ,
const DeepCollectionEquality ( ) . hash ( path ) ,
const DeepCollectionEquality ( ) . hash ( name ) ) ;
2021-11-19 17:05:57 +03:00
@ JsonKey ( ignore: true )
@ override
2022-05-12 12:06:28 +03:00
_ $ $NfcReaderNodeCopyWith < _ $NfcReaderNode > get copyWith = >
__ $ $NfcReaderNodeCopyWithImpl < _ $NfcReaderNode > ( 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-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
} ) {
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 ? > ( {
TResult Function ( UsbYubiKeyNode value ) ? usbYubiKey ,
TResult Function ( NfcReaderNode value ) ? nfcReader ,
} ) {
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 ) =
_ $NfcReaderNode ;
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 )
2022-05-12 12:06:28 +03:00
_ $ $NfcReaderNodeCopyWith < _ $NfcReaderNode > get copyWith = >
2021-11-19 17:05:57 +03:00
throw _privateConstructorUsedError ;
}
2021-12-02 13:44:17 +03:00
/// @nodoc
mixin _ $MenuAction {
String get text = > throw _privateConstructorUsedError ;
2022-03-03 15:55:07 +03:00
Widget get icon = > throw _privateConstructorUsedError ;
2022-09-28 18:31:17 +03:00
String ? get trailing = > throw _privateConstructorUsedError ;
2022-02-08 17:40:26 +03:00
void Function ( BuildContext ) ? get action = > throw _privateConstructorUsedError ;
2021-12-02 13:44:17 +03:00
@ JsonKey ( ignore: true )
$MenuActionCopyWith < MenuAction > get copyWith = >
throw _privateConstructorUsedError ;
}
/// @nodoc
abstract class $MenuActionCopyWith < $Res > {
factory $MenuActionCopyWith (
MenuAction value , $Res Function ( MenuAction ) then ) =
_ $MenuActionCopyWithImpl < $Res > ;
2022-09-28 18:31:17 +03:00
$Res call (
{ String text ,
Widget icon ,
String ? trailing ,
void Function ( BuildContext ) ? action } ) ;
2021-12-02 13:44:17 +03:00
}
/// @nodoc
class _ $MenuActionCopyWithImpl < $Res > implements $MenuActionCopyWith < $Res > {
_ $MenuActionCopyWithImpl ( this . _value , this . _then ) ;
final MenuAction _value ;
// ignore: unused_field
final $Res Function ( MenuAction ) _then ;
@ override
$Res call ( {
Object ? text = freezed ,
Object ? icon = freezed ,
2022-09-28 18:31:17 +03:00
Object ? trailing = freezed ,
2021-12-02 13:44:17 +03:00
Object ? action = freezed ,
} ) {
return _then ( _value . copyWith (
text: text = = freezed
? _value . text
: text // ignore: cast_nullable_to_non_nullable
as String ,
icon: icon = = freezed
? _value . icon
: icon // ignore: cast_nullable_to_non_nullable
2022-03-03 15:55:07 +03:00
as Widget ,
2022-09-28 18:31:17 +03:00
trailing: trailing = = freezed
? _value . trailing
: trailing // ignore: cast_nullable_to_non_nullable
as String ? ,
2021-12-02 13:44:17 +03:00
action: action = = freezed
? _value . action
: action // ignore: cast_nullable_to_non_nullable
2022-02-08 17:40:26 +03:00
as void Function ( BuildContext ) ? ,
2021-12-02 13:44:17 +03:00
) ) ;
}
}
/// @nodoc
2022-05-12 12:06:28 +03:00
abstract class _ $ $_MenuActionCopyWith < $Res >
implements $MenuActionCopyWith < $Res > {
factory _ $ $_MenuActionCopyWith (
_ $_MenuAction value , $Res Function ( _ $_MenuAction ) then ) =
__ $ $_MenuActionCopyWithImpl < $Res > ;
2021-12-02 13:44:17 +03:00
@ override
2022-09-28 18:31:17 +03:00
$Res call (
{ String text ,
Widget icon ,
String ? trailing ,
void Function ( BuildContext ) ? action } ) ;
2021-12-02 13:44:17 +03:00
}
/// @nodoc
2022-05-12 12:06:28 +03:00
class __ $ $_MenuActionCopyWithImpl < $Res > extends _ $MenuActionCopyWithImpl < $Res >
implements _ $ $_MenuActionCopyWith < $Res > {
__ $ $_MenuActionCopyWithImpl (
_ $_MenuAction _value , $Res Function ( _ $_MenuAction ) _then )
: super ( _value , ( v ) = > _then ( v as _ $_MenuAction ) ) ;
2021-12-02 13:44:17 +03:00
@ override
2022-05-12 12:06:28 +03:00
_ $_MenuAction get _value = > super . _value as _ $_MenuAction ;
2021-12-02 13:44:17 +03:00
@ override
$Res call ( {
Object ? text = freezed ,
Object ? icon = freezed ,
2022-09-28 18:31:17 +03:00
Object ? trailing = freezed ,
2021-12-02 13:44:17 +03:00
Object ? action = freezed ,
} ) {
2022-05-12 12:06:28 +03:00
return _then ( _ $_MenuAction (
2021-12-02 13:44:17 +03:00
text: text = = freezed
? _value . text
: text // ignore: cast_nullable_to_non_nullable
as String ,
icon: icon = = freezed
? _value . icon
: icon // ignore: cast_nullable_to_non_nullable
2022-03-03 15:55:07 +03:00
as Widget ,
2022-09-28 18:31:17 +03:00
trailing: trailing = = freezed
? _value . trailing
: trailing // ignore: cast_nullable_to_non_nullable
as String ? ,
2021-12-02 13:44:17 +03:00
action: action = = freezed
? _value . action
: action // ignore: cast_nullable_to_non_nullable
2022-02-08 17:40:26 +03:00
as void Function ( BuildContext ) ? ,
2021-12-02 13:44:17 +03:00
) ) ;
}
}
/// @nodoc
class _ $_MenuAction implements _MenuAction {
2022-09-28 18:31:17 +03:00
_ $_MenuAction (
{ required this . text , required this . icon , this . trailing , this . action } ) ;
2021-12-02 13:44:17 +03:00
@ override
final String text ;
@ override
2022-03-03 15:55:07 +03:00
final Widget icon ;
2021-12-02 13:44:17 +03:00
@ override
2022-09-28 18:31:17 +03:00
final String ? trailing ;
@ override
2022-02-08 17:40:26 +03:00
final void Function ( BuildContext ) ? action ;
2021-12-02 13:44:17 +03:00
@ override
String toString ( ) {
2022-09-28 18:31:17 +03:00
return ' MenuAction(text: $ text , icon: $ icon , trailing: $ trailing , action: $ action ) ' ;
2021-12-02 13:44:17 +03:00
}
@ override
bool operator = = ( dynamic other ) {
return identical ( this , other ) | |
( other . runtimeType = = runtimeType & &
2022-05-12 12:06:28 +03:00
other is _ $_MenuAction & &
2022-01-12 14:49:04 +03:00
const DeepCollectionEquality ( ) . equals ( other . text , text ) & &
const DeepCollectionEquality ( ) . equals ( other . icon , icon ) & &
2022-09-28 18:31:17 +03:00
const DeepCollectionEquality ( ) . equals ( other . trailing , trailing ) & &
2021-12-02 13:44:17 +03:00
( identical ( other . action , action ) | | other . action = = action ) ) ;
}
@ override
2022-01-12 14:49:04 +03:00
int get hashCode = > Object . hash (
runtimeType ,
const DeepCollectionEquality ( ) . hash ( text ) ,
const DeepCollectionEquality ( ) . hash ( icon ) ,
2022-09-28 18:31:17 +03:00
const DeepCollectionEquality ( ) . hash ( trailing ) ,
2022-01-12 14:49:04 +03:00
action ) ;
2021-12-02 13:44:17 +03:00
@ JsonKey ( ignore: true )
@ override
2022-05-12 12:06:28 +03:00
_ $ $_MenuActionCopyWith < _ $_MenuAction > get copyWith = >
__ $ $_MenuActionCopyWithImpl < _ $_MenuAction > ( this , _ $identity ) ;
2021-12-02 13:44:17 +03:00
}
abstract class _MenuAction implements MenuAction {
factory _MenuAction (
2022-05-12 12:06:28 +03:00
{ required final String text ,
required final Widget icon ,
2022-09-28 18:31:17 +03:00
final String ? trailing ,
2022-05-12 12:06:28 +03:00
final void Function ( BuildContext ) ? action } ) = _ $_MenuAction ;
2021-12-02 13:44:17 +03:00
@ override
2022-07-07 11:29:42 +03:00
String get text ;
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
2022-09-28 18:31:17 +03:00
String ? get trailing ;
@ override
2022-07-07 11:29:42 +03:00
void Function ( BuildContext ) ? get action ;
2021-12-02 13:44:17 +03:00
@ override
@ JsonKey ( ignore: true )
2022-05-12 12:06:28 +03:00
_ $ $_MenuActionCopyWith < _ $_MenuAction > 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 ;
@ JsonKey ( ignore: true )
$WindowStateCopyWith < WindowState > get copyWith = >
throw _privateConstructorUsedError ;
}
/// @nodoc
abstract class $WindowStateCopyWith < $Res > {
factory $WindowStateCopyWith (
WindowState value , $Res Function ( WindowState ) then ) =
_ $WindowStateCopyWithImpl < $Res > ;
$Res call ( { bool focused , bool visible , bool active } ) ;
}
/// @nodoc
class _ $WindowStateCopyWithImpl < $Res > implements $WindowStateCopyWith < $Res > {
_ $WindowStateCopyWithImpl ( this . _value , this . _then ) ;
final WindowState _value ;
// ignore: unused_field
final $Res Function ( WindowState ) _then ;
@ override
$Res call ( {
Object ? focused = freezed ,
Object ? visible = freezed ,
Object ? active = freezed ,
} ) {
return _then ( _value . copyWith (
focused: focused = = freezed
? _value . focused
: focused // ignore: cast_nullable_to_non_nullable
as bool ,
visible: visible = = freezed
? _value . visible
: visible // ignore: cast_nullable_to_non_nullable
as bool ,
active: active = = freezed
? _value . active
: active // ignore: cast_nullable_to_non_nullable
as bool ,
) ) ;
}
}
/// @nodoc
2022-05-12 12:06:28 +03:00
abstract class _ $ $_WindowStateCopyWith < $Res >
2021-12-03 12:27:29 +03:00
implements $WindowStateCopyWith < $Res > {
2022-05-12 12:06:28 +03:00
factory _ $ $_WindowStateCopyWith (
_ $_WindowState value , $Res Function ( _ $_WindowState ) then ) =
__ $ $_WindowStateCopyWithImpl < $Res > ;
2021-12-03 12:27:29 +03:00
@ override
$Res call ( { bool focused , bool visible , bool active } ) ;
}
/// @nodoc
2022-05-12 12:06:28 +03:00
class __ $ $_WindowStateCopyWithImpl < $Res > extends _ $WindowStateCopyWithImpl < $Res >
implements _ $ $_WindowStateCopyWith < $Res > {
__ $ $_WindowStateCopyWithImpl (
_ $_WindowState _value , $Res Function ( _ $_WindowState ) _then )
: super ( _value , ( v ) = > _then ( v as _ $_WindowState ) ) ;
2021-12-03 12:27:29 +03:00
@ override
2022-05-12 12:06:28 +03:00
_ $_WindowState get _value = > super . _value as _ $_WindowState ;
2021-12-03 12:27:29 +03:00
@ override
$Res call ( {
Object ? focused = freezed ,
Object ? visible = freezed ,
Object ? active = freezed ,
} ) {
2022-05-12 12:06:28 +03:00
return _then ( _ $_WindowState (
2021-12-03 12:27:29 +03:00
focused: focused = = freezed
? _value . focused
: focused // ignore: cast_nullable_to_non_nullable
as bool ,
visible: visible = = freezed
? _value . visible
: visible // ignore: cast_nullable_to_non_nullable
as bool ,
active: active = = freezed
? _value . active
: active // ignore: cast_nullable_to_non_nullable
as bool ,
) ) ;
}
}
/// @nodoc
class _ $_WindowState implements _WindowState {
_ $_WindowState (
{ required this . focused , required this . visible , required this . active } ) ;
@ override
final bool focused ;
@ override
final bool visible ;
@ override
final bool active ;
@ override
String toString ( ) {
return ' WindowState(focused: $ focused , visible: $ visible , active: $ active ) ' ;
}
@ override
bool operator = = ( dynamic other ) {
return identical ( this , other ) | |
( other . runtimeType = = runtimeType & &
2022-05-12 12:06:28 +03:00
other is _ $_WindowState & &
2022-01-12 14:49:04 +03:00
const DeepCollectionEquality ( ) . equals ( other . focused , focused ) & &
const DeepCollectionEquality ( ) . equals ( other . visible , visible ) & &
const DeepCollectionEquality ( ) . equals ( other . active , active ) ) ;
2021-12-03 12:27:29 +03:00
}
@ override
2022-01-12 14:49:04 +03:00
int get hashCode = > Object . hash (
runtimeType ,
const DeepCollectionEquality ( ) . hash ( focused ) ,
const DeepCollectionEquality ( ) . hash ( visible ) ,
const DeepCollectionEquality ( ) . hash ( active ) ) ;
2021-12-03 12:27:29 +03:00
@ JsonKey ( ignore: true )
@ override
2022-05-12 12:06:28 +03:00
_ $ $_WindowStateCopyWith < _ $_WindowState > get copyWith = >
__ $ $_WindowStateCopyWithImpl < _ $_WindowState > ( 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 ,
required final bool active } ) = _ $_WindowState ;
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
@ JsonKey ( ignore: true )
2022-05-12 12:06:28 +03:00
_ $ $_WindowStateCopyWith < _ $_WindowState > get copyWith = >
2021-12-03 12:27:29 +03:00
throw _privateConstructorUsedError ;
}