mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2024-12-24 10:42:47 +03:00
939f590b09
Instead of when constructing the MenuItem itself.
990 lines
27 KiB
Dart
Executable File
990 lines
27 KiB
Dart
Executable File
// 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
|
|
|
|
part of 'models.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 informations: https://github.com/rrousselGit/freezed#custom-getters-and-methods');
|
|
|
|
/// @nodoc
|
|
class _$YubiKeyDataTearOff {
|
|
const _$YubiKeyDataTearOff();
|
|
|
|
_YubiKeyData call(DeviceNode node, String name, DeviceInfo info) {
|
|
return _YubiKeyData(
|
|
node,
|
|
name,
|
|
info,
|
|
);
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
const $YubiKeyData = _$YubiKeyDataTearOff();
|
|
|
|
/// @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
|
|
abstract class _$YubiKeyDataCopyWith<$Res>
|
|
implements $YubiKeyDataCopyWith<$Res> {
|
|
factory _$YubiKeyDataCopyWith(
|
|
_YubiKeyData value, $Res Function(_YubiKeyData) then) =
|
|
__$YubiKeyDataCopyWithImpl<$Res>;
|
|
@override
|
|
$Res call({DeviceNode node, String name, DeviceInfo info});
|
|
|
|
@override
|
|
$DeviceNodeCopyWith<$Res> get node;
|
|
@override
|
|
$DeviceInfoCopyWith<$Res> get info;
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$YubiKeyDataCopyWithImpl<$Res> extends _$YubiKeyDataCopyWithImpl<$Res>
|
|
implements _$YubiKeyDataCopyWith<$Res> {
|
|
__$YubiKeyDataCopyWithImpl(
|
|
_YubiKeyData _value, $Res Function(_YubiKeyData) _then)
|
|
: super(_value, (v) => _then(v as _YubiKeyData));
|
|
|
|
@override
|
|
_YubiKeyData get _value => super._value as _YubiKeyData;
|
|
|
|
@override
|
|
$Res call({
|
|
Object? node = freezed,
|
|
Object? name = freezed,
|
|
Object? info = freezed,
|
|
}) {
|
|
return _then(_YubiKeyData(
|
|
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 &&
|
|
other is _YubiKeyData &&
|
|
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
|
|
_$YubiKeyDataCopyWith<_YubiKeyData> get copyWith =>
|
|
__$YubiKeyDataCopyWithImpl<_YubiKeyData>(this, _$identity);
|
|
}
|
|
|
|
abstract class _YubiKeyData implements YubiKeyData {
|
|
factory _YubiKeyData(DeviceNode node, String name, DeviceInfo info) =
|
|
_$_YubiKeyData;
|
|
|
|
@override
|
|
DeviceNode get node;
|
|
@override
|
|
String get name;
|
|
@override
|
|
DeviceInfo get info;
|
|
@override
|
|
@JsonKey(ignore: true)
|
|
_$YubiKeyDataCopyWith<_YubiKeyData> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$DeviceNodeTearOff {
|
|
const _$DeviceNodeTearOff();
|
|
|
|
UsbYubiKeyNode usbYubiKey(
|
|
DevicePath path, String name, int pid, DeviceInfo info) {
|
|
return UsbYubiKeyNode(
|
|
path,
|
|
name,
|
|
pid,
|
|
info,
|
|
);
|
|
}
|
|
|
|
NfcReaderNode nfcReader(DevicePath path, String name) {
|
|
return NfcReaderNode(
|
|
path,
|
|
name,
|
|
);
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
const $DeviceNode = _$DeviceNodeTearOff();
|
|
|
|
/// @nodoc
|
|
mixin _$DeviceNode {
|
|
DevicePath get path => throw _privateConstructorUsedError;
|
|
String get name => throw _privateConstructorUsedError;
|
|
|
|
@optionalTypeArgs
|
|
TResult when<TResult extends Object?>({
|
|
required TResult Function(
|
|
DevicePath path, String name, int pid, DeviceInfo info)
|
|
usbYubiKey,
|
|
required TResult Function(DevicePath path, String name) nfcReader,
|
|
}) =>
|
|
throw _privateConstructorUsedError;
|
|
@optionalTypeArgs
|
|
TResult? whenOrNull<TResult extends Object?>({
|
|
TResult Function(DevicePath path, String name, int pid, DeviceInfo info)?
|
|
usbYubiKey,
|
|
TResult Function(DevicePath path, String name)? nfcReader,
|
|
}) =>
|
|
throw _privateConstructorUsedError;
|
|
@optionalTypeArgs
|
|
TResult maybeWhen<TResult extends Object?>({
|
|
TResult Function(DevicePath path, String name, int pid, DeviceInfo info)?
|
|
usbYubiKey,
|
|
TResult Function(DevicePath path, String name)? nfcReader,
|
|
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;
|
|
|
|
@JsonKey(ignore: true)
|
|
$DeviceNodeCopyWith<DeviceNode> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class $DeviceNodeCopyWith<$Res> {
|
|
factory $DeviceNodeCopyWith(
|
|
DeviceNode value, $Res Function(DeviceNode) then) =
|
|
_$DeviceNodeCopyWithImpl<$Res>;
|
|
$Res call({DevicePath path, String name});
|
|
}
|
|
|
|
/// @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
|
|
as DevicePath,
|
|
name: name == freezed
|
|
? _value.name
|
|
: name // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
));
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class $UsbYubiKeyNodeCopyWith<$Res>
|
|
implements $DeviceNodeCopyWith<$Res> {
|
|
factory $UsbYubiKeyNodeCopyWith(
|
|
UsbYubiKeyNode value, $Res Function(UsbYubiKeyNode) then) =
|
|
_$UsbYubiKeyNodeCopyWithImpl<$Res>;
|
|
@override
|
|
$Res call({DevicePath path, String name, int pid, DeviceInfo info});
|
|
|
|
$DeviceInfoCopyWith<$Res> get info;
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$UsbYubiKeyNodeCopyWithImpl<$Res> extends _$DeviceNodeCopyWithImpl<$Res>
|
|
implements $UsbYubiKeyNodeCopyWith<$Res> {
|
|
_$UsbYubiKeyNodeCopyWithImpl(
|
|
UsbYubiKeyNode _value, $Res Function(UsbYubiKeyNode) _then)
|
|
: super(_value, (v) => _then(v as UsbYubiKeyNode));
|
|
|
|
@override
|
|
UsbYubiKeyNode get _value => super._value as UsbYubiKeyNode;
|
|
|
|
@override
|
|
$Res call({
|
|
Object? path = freezed,
|
|
Object? name = freezed,
|
|
Object? pid = freezed,
|
|
Object? info = freezed,
|
|
}) {
|
|
return _then(UsbYubiKeyNode(
|
|
path == freezed
|
|
? _value.path
|
|
: path // ignore: cast_nullable_to_non_nullable
|
|
as DevicePath,
|
|
name == freezed
|
|
? _value.name
|
|
: name // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
pid == freezed
|
|
? _value.pid
|
|
: pid // ignore: cast_nullable_to_non_nullable
|
|
as int,
|
|
info == freezed
|
|
? _value.info
|
|
: info // ignore: cast_nullable_to_non_nullable
|
|
as DeviceInfo,
|
|
));
|
|
}
|
|
|
|
@override
|
|
$DeviceInfoCopyWith<$Res> get info {
|
|
return $DeviceInfoCopyWith<$Res>(_value.info, (value) {
|
|
return _then(_value.copyWith(info: value));
|
|
});
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
|
|
class _$UsbYubiKeyNode implements UsbYubiKeyNode {
|
|
_$UsbYubiKeyNode(this.path, this.name, this.pid, this.info);
|
|
|
|
@override
|
|
final DevicePath path;
|
|
@override
|
|
final String name;
|
|
@override
|
|
final int pid;
|
|
@override
|
|
final DeviceInfo info;
|
|
|
|
@override
|
|
String toString() {
|
|
return 'DeviceNode.usbYubiKey(path: $path, name: $name, pid: $pid, info: $info)';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(dynamic other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType &&
|
|
other is UsbYubiKeyNode &&
|
|
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
|
|
$UsbYubiKeyNodeCopyWith<UsbYubiKeyNode> get copyWith =>
|
|
_$UsbYubiKeyNodeCopyWithImpl<UsbYubiKeyNode>(this, _$identity);
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult when<TResult extends Object?>({
|
|
required TResult Function(
|
|
DevicePath path, String name, int pid, DeviceInfo info)
|
|
usbYubiKey,
|
|
required TResult Function(DevicePath path, String name) nfcReader,
|
|
}) {
|
|
return usbYubiKey(path, name, pid, info);
|
|
}
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult? whenOrNull<TResult extends Object?>({
|
|
TResult Function(DevicePath path, String name, int pid, DeviceInfo info)?
|
|
usbYubiKey,
|
|
TResult Function(DevicePath path, String name)? nfcReader,
|
|
}) {
|
|
return usbYubiKey?.call(path, name, pid, info);
|
|
}
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult maybeWhen<TResult extends Object?>({
|
|
TResult Function(DevicePath path, String name, int pid, DeviceInfo info)?
|
|
usbYubiKey,
|
|
TResult Function(DevicePath path, String name)? nfcReader,
|
|
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();
|
|
}
|
|
}
|
|
|
|
abstract class UsbYubiKeyNode implements DeviceNode {
|
|
factory UsbYubiKeyNode(
|
|
DevicePath path, String name, int pid, DeviceInfo info) =
|
|
_$UsbYubiKeyNode;
|
|
|
|
@override
|
|
DevicePath get path;
|
|
@override
|
|
String get name;
|
|
int get pid;
|
|
DeviceInfo get info;
|
|
@override
|
|
@JsonKey(ignore: true)
|
|
$UsbYubiKeyNodeCopyWith<UsbYubiKeyNode> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class $NfcReaderNodeCopyWith<$Res>
|
|
implements $DeviceNodeCopyWith<$Res> {
|
|
factory $NfcReaderNodeCopyWith(
|
|
NfcReaderNode value, $Res Function(NfcReaderNode) then) =
|
|
_$NfcReaderNodeCopyWithImpl<$Res>;
|
|
@override
|
|
$Res call({DevicePath path, String name});
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$NfcReaderNodeCopyWithImpl<$Res> extends _$DeviceNodeCopyWithImpl<$Res>
|
|
implements $NfcReaderNodeCopyWith<$Res> {
|
|
_$NfcReaderNodeCopyWithImpl(
|
|
NfcReaderNode _value, $Res Function(NfcReaderNode) _then)
|
|
: super(_value, (v) => _then(v as NfcReaderNode));
|
|
|
|
@override
|
|
NfcReaderNode get _value => super._value as NfcReaderNode;
|
|
|
|
@override
|
|
$Res call({
|
|
Object? path = freezed,
|
|
Object? name = freezed,
|
|
}) {
|
|
return _then(NfcReaderNode(
|
|
path == freezed
|
|
? _value.path
|
|
: path // ignore: cast_nullable_to_non_nullable
|
|
as DevicePath,
|
|
name == freezed
|
|
? _value.name
|
|
: name // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
));
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
|
|
class _$NfcReaderNode implements NfcReaderNode {
|
|
_$NfcReaderNode(this.path, this.name);
|
|
|
|
@override
|
|
final DevicePath path;
|
|
@override
|
|
final String name;
|
|
|
|
@override
|
|
String toString() {
|
|
return 'DeviceNode.nfcReader(path: $path, name: $name)';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(dynamic other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType &&
|
|
other is NfcReaderNode &&
|
|
const DeepCollectionEquality().equals(other.path, path) &&
|
|
const DeepCollectionEquality().equals(other.name, name));
|
|
}
|
|
|
|
@override
|
|
int get hashCode => Object.hash(
|
|
runtimeType,
|
|
const DeepCollectionEquality().hash(path),
|
|
const DeepCollectionEquality().hash(name));
|
|
|
|
@JsonKey(ignore: true)
|
|
@override
|
|
$NfcReaderNodeCopyWith<NfcReaderNode> get copyWith =>
|
|
_$NfcReaderNodeCopyWithImpl<NfcReaderNode>(this, _$identity);
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult when<TResult extends Object?>({
|
|
required TResult Function(
|
|
DevicePath path, String name, int pid, DeviceInfo info)
|
|
usbYubiKey,
|
|
required TResult Function(DevicePath path, String name) nfcReader,
|
|
}) {
|
|
return nfcReader(path, name);
|
|
}
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult? whenOrNull<TResult extends Object?>({
|
|
TResult Function(DevicePath path, String name, int pid, DeviceInfo info)?
|
|
usbYubiKey,
|
|
TResult Function(DevicePath path, String name)? nfcReader,
|
|
}) {
|
|
return nfcReader?.call(path, name);
|
|
}
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult maybeWhen<TResult extends Object?>({
|
|
TResult Function(DevicePath path, String name, int pid, DeviceInfo info)?
|
|
usbYubiKey,
|
|
TResult Function(DevicePath path, String name)? nfcReader,
|
|
required TResult orElse(),
|
|
}) {
|
|
if (nfcReader != null) {
|
|
return nfcReader(path, name);
|
|
}
|
|
return orElse();
|
|
}
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult map<TResult extends Object?>({
|
|
required TResult Function(UsbYubiKeyNode value) usbYubiKey,
|
|
required TResult Function(NfcReaderNode value) nfcReader,
|
|
}) {
|
|
return nfcReader(this);
|
|
}
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult? mapOrNull<TResult extends Object?>({
|
|
TResult Function(UsbYubiKeyNode value)? usbYubiKey,
|
|
TResult Function(NfcReaderNode value)? nfcReader,
|
|
}) {
|
|
return nfcReader?.call(this);
|
|
}
|
|
|
|
@override
|
|
@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();
|
|
}
|
|
}
|
|
|
|
abstract class NfcReaderNode implements DeviceNode {
|
|
factory NfcReaderNode(DevicePath path, String name) = _$NfcReaderNode;
|
|
|
|
@override
|
|
DevicePath get path;
|
|
@override
|
|
String get name;
|
|
@override
|
|
@JsonKey(ignore: true)
|
|
$NfcReaderNodeCopyWith<NfcReaderNode> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$MenuActionTearOff {
|
|
const _$MenuActionTearOff();
|
|
|
|
_MenuAction call(
|
|
{required String text,
|
|
required Icon icon,
|
|
void Function(BuildContext)? action}) {
|
|
return _MenuAction(
|
|
text: text,
|
|
icon: icon,
|
|
action: action,
|
|
);
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
const $MenuAction = _$MenuActionTearOff();
|
|
|
|
/// @nodoc
|
|
mixin _$MenuAction {
|
|
String get text => throw _privateConstructorUsedError;
|
|
Icon get icon => throw _privateConstructorUsedError;
|
|
void Function(BuildContext)? get action => throw _privateConstructorUsedError;
|
|
|
|
@JsonKey(ignore: true)
|
|
$MenuActionCopyWith<MenuAction> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class $MenuActionCopyWith<$Res> {
|
|
factory $MenuActionCopyWith(
|
|
MenuAction value, $Res Function(MenuAction) then) =
|
|
_$MenuActionCopyWithImpl<$Res>;
|
|
$Res call({String text, Icon icon, void Function(BuildContext)? action});
|
|
}
|
|
|
|
/// @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,
|
|
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
|
|
as Icon,
|
|
action: action == freezed
|
|
? _value.action
|
|
: action // ignore: cast_nullable_to_non_nullable
|
|
as void Function(BuildContext)?,
|
|
));
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$MenuActionCopyWith<$Res> implements $MenuActionCopyWith<$Res> {
|
|
factory _$MenuActionCopyWith(
|
|
_MenuAction value, $Res Function(_MenuAction) then) =
|
|
__$MenuActionCopyWithImpl<$Res>;
|
|
@override
|
|
$Res call({String text, Icon icon, void Function(BuildContext)? action});
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$MenuActionCopyWithImpl<$Res> extends _$MenuActionCopyWithImpl<$Res>
|
|
implements _$MenuActionCopyWith<$Res> {
|
|
__$MenuActionCopyWithImpl(
|
|
_MenuAction _value, $Res Function(_MenuAction) _then)
|
|
: super(_value, (v) => _then(v as _MenuAction));
|
|
|
|
@override
|
|
_MenuAction get _value => super._value as _MenuAction;
|
|
|
|
@override
|
|
$Res call({
|
|
Object? text = freezed,
|
|
Object? icon = freezed,
|
|
Object? action = freezed,
|
|
}) {
|
|
return _then(_MenuAction(
|
|
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
|
|
as Icon,
|
|
action: action == freezed
|
|
? _value.action
|
|
: action // ignore: cast_nullable_to_non_nullable
|
|
as void Function(BuildContext)?,
|
|
));
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
|
|
class _$_MenuAction implements _MenuAction {
|
|
_$_MenuAction({required this.text, required this.icon, this.action});
|
|
|
|
@override
|
|
final String text;
|
|
@override
|
|
final Icon icon;
|
|
@override
|
|
final void Function(BuildContext)? action;
|
|
|
|
@override
|
|
String toString() {
|
|
return 'MenuAction(text: $text, icon: $icon, action: $action)';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(dynamic other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType &&
|
|
other is _MenuAction &&
|
|
const DeepCollectionEquality().equals(other.text, text) &&
|
|
const DeepCollectionEquality().equals(other.icon, icon) &&
|
|
(identical(other.action, action) || other.action == action));
|
|
}
|
|
|
|
@override
|
|
int get hashCode => Object.hash(
|
|
runtimeType,
|
|
const DeepCollectionEquality().hash(text),
|
|
const DeepCollectionEquality().hash(icon),
|
|
action);
|
|
|
|
@JsonKey(ignore: true)
|
|
@override
|
|
_$MenuActionCopyWith<_MenuAction> get copyWith =>
|
|
__$MenuActionCopyWithImpl<_MenuAction>(this, _$identity);
|
|
}
|
|
|
|
abstract class _MenuAction implements MenuAction {
|
|
factory _MenuAction(
|
|
{required String text,
|
|
required Icon icon,
|
|
void Function(BuildContext)? action}) = _$_MenuAction;
|
|
|
|
@override
|
|
String get text;
|
|
@override
|
|
Icon get icon;
|
|
@override
|
|
void Function(BuildContext)? get action;
|
|
@override
|
|
@JsonKey(ignore: true)
|
|
_$MenuActionCopyWith<_MenuAction> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$WindowStateTearOff {
|
|
const _$WindowStateTearOff();
|
|
|
|
_WindowState call(
|
|
{required bool focused, required bool visible, required bool active}) {
|
|
return _WindowState(
|
|
focused: focused,
|
|
visible: visible,
|
|
active: active,
|
|
);
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
const $WindowState = _$WindowStateTearOff();
|
|
|
|
/// @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
|
|
abstract class _$WindowStateCopyWith<$Res>
|
|
implements $WindowStateCopyWith<$Res> {
|
|
factory _$WindowStateCopyWith(
|
|
_WindowState value, $Res Function(_WindowState) then) =
|
|
__$WindowStateCopyWithImpl<$Res>;
|
|
@override
|
|
$Res call({bool focused, bool visible, bool active});
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$WindowStateCopyWithImpl<$Res> extends _$WindowStateCopyWithImpl<$Res>
|
|
implements _$WindowStateCopyWith<$Res> {
|
|
__$WindowStateCopyWithImpl(
|
|
_WindowState _value, $Res Function(_WindowState) _then)
|
|
: super(_value, (v) => _then(v as _WindowState));
|
|
|
|
@override
|
|
_WindowState get _value => super._value as _WindowState;
|
|
|
|
@override
|
|
$Res call({
|
|
Object? focused = freezed,
|
|
Object? visible = freezed,
|
|
Object? active = freezed,
|
|
}) {
|
|
return _then(_WindowState(
|
|
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 &&
|
|
other is _WindowState &&
|
|
const DeepCollectionEquality().equals(other.focused, focused) &&
|
|
const DeepCollectionEquality().equals(other.visible, visible) &&
|
|
const DeepCollectionEquality().equals(other.active, active));
|
|
}
|
|
|
|
@override
|
|
int get hashCode => Object.hash(
|
|
runtimeType,
|
|
const DeepCollectionEquality().hash(focused),
|
|
const DeepCollectionEquality().hash(visible),
|
|
const DeepCollectionEquality().hash(active));
|
|
|
|
@JsonKey(ignore: true)
|
|
@override
|
|
_$WindowStateCopyWith<_WindowState> get copyWith =>
|
|
__$WindowStateCopyWithImpl<_WindowState>(this, _$identity);
|
|
}
|
|
|
|
abstract class _WindowState implements WindowState {
|
|
factory _WindowState(
|
|
{required bool focused,
|
|
required bool visible,
|
|
required bool active}) = _$_WindowState;
|
|
|
|
@override
|
|
bool get focused;
|
|
@override
|
|
bool get visible;
|
|
@override
|
|
bool get active;
|
|
@override
|
|
@JsonKey(ignore: true)
|
|
_$WindowStateCopyWith<_WindowState> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|