mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2024-11-25 05:52:40 +03:00
Reorder DeviceInfo parameters for consistency
This commit is contained in:
parent
4f0345d8a7
commit
8f1af00dca
@ -90,9 +90,9 @@ class DeviceInfo with _$DeviceInfo {
|
|||||||
bool isFips,
|
bool isFips,
|
||||||
bool isSky,
|
bool isSky,
|
||||||
bool pinComplexity,
|
bool pinComplexity,
|
||||||
int resetBlocked,
|
|
||||||
int fipsCapable,
|
int fipsCapable,
|
||||||
int fipsApproved) = _DeviceInfo;
|
int fipsApproved,
|
||||||
|
int resetBlocked) = _DeviceInfo;
|
||||||
|
|
||||||
factory DeviceInfo.fromJson(Map<String, dynamic> json) =>
|
factory DeviceInfo.fromJson(Map<String, dynamic> json) =>
|
||||||
_$DeviceInfoFromJson(json);
|
_$DeviceInfoFromJson(json);
|
||||||
|
@ -246,9 +246,9 @@ mixin _$DeviceInfo {
|
|||||||
bool get isFips => throw _privateConstructorUsedError;
|
bool get isFips => throw _privateConstructorUsedError;
|
||||||
bool get isSky => throw _privateConstructorUsedError;
|
bool get isSky => throw _privateConstructorUsedError;
|
||||||
bool get pinComplexity => throw _privateConstructorUsedError;
|
bool get pinComplexity => throw _privateConstructorUsedError;
|
||||||
int get resetBlocked => throw _privateConstructorUsedError;
|
|
||||||
int get fipsCapable => throw _privateConstructorUsedError;
|
int get fipsCapable => throw _privateConstructorUsedError;
|
||||||
int get fipsApproved => throw _privateConstructorUsedError;
|
int get fipsApproved => throw _privateConstructorUsedError;
|
||||||
|
int get resetBlocked => throw _privateConstructorUsedError;
|
||||||
|
|
||||||
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
||||||
@JsonKey(ignore: true)
|
@JsonKey(ignore: true)
|
||||||
@ -272,9 +272,9 @@ abstract class $DeviceInfoCopyWith<$Res> {
|
|||||||
bool isFips,
|
bool isFips,
|
||||||
bool isSky,
|
bool isSky,
|
||||||
bool pinComplexity,
|
bool pinComplexity,
|
||||||
int resetBlocked,
|
|
||||||
int fipsCapable,
|
int fipsCapable,
|
||||||
int fipsApproved});
|
int fipsApproved,
|
||||||
|
int resetBlocked});
|
||||||
|
|
||||||
$DeviceConfigCopyWith<$Res> get config;
|
$DeviceConfigCopyWith<$Res> get config;
|
||||||
$VersionCopyWith<$Res> get version;
|
$VersionCopyWith<$Res> get version;
|
||||||
@ -302,9 +302,9 @@ class _$DeviceInfoCopyWithImpl<$Res, $Val extends DeviceInfo>
|
|||||||
Object? isFips = null,
|
Object? isFips = null,
|
||||||
Object? isSky = null,
|
Object? isSky = null,
|
||||||
Object? pinComplexity = null,
|
Object? pinComplexity = null,
|
||||||
Object? resetBlocked = null,
|
|
||||||
Object? fipsCapable = null,
|
Object? fipsCapable = null,
|
||||||
Object? fipsApproved = null,
|
Object? fipsApproved = null,
|
||||||
|
Object? resetBlocked = null,
|
||||||
}) {
|
}) {
|
||||||
return _then(_value.copyWith(
|
return _then(_value.copyWith(
|
||||||
config: null == config
|
config: null == config
|
||||||
@ -343,10 +343,6 @@ class _$DeviceInfoCopyWithImpl<$Res, $Val extends DeviceInfo>
|
|||||||
? _value.pinComplexity
|
? _value.pinComplexity
|
||||||
: pinComplexity // ignore: cast_nullable_to_non_nullable
|
: pinComplexity // ignore: cast_nullable_to_non_nullable
|
||||||
as bool,
|
as bool,
|
||||||
resetBlocked: null == resetBlocked
|
|
||||||
? _value.resetBlocked
|
|
||||||
: resetBlocked // ignore: cast_nullable_to_non_nullable
|
|
||||||
as int,
|
|
||||||
fipsCapable: null == fipsCapable
|
fipsCapable: null == fipsCapable
|
||||||
? _value.fipsCapable
|
? _value.fipsCapable
|
||||||
: fipsCapable // ignore: cast_nullable_to_non_nullable
|
: fipsCapable // ignore: cast_nullable_to_non_nullable
|
||||||
@ -355,6 +351,10 @@ class _$DeviceInfoCopyWithImpl<$Res, $Val extends DeviceInfo>
|
|||||||
? _value.fipsApproved
|
? _value.fipsApproved
|
||||||
: fipsApproved // ignore: cast_nullable_to_non_nullable
|
: fipsApproved // ignore: cast_nullable_to_non_nullable
|
||||||
as int,
|
as int,
|
||||||
|
resetBlocked: null == resetBlocked
|
||||||
|
? _value.resetBlocked
|
||||||
|
: resetBlocked // ignore: cast_nullable_to_non_nullable
|
||||||
|
as int,
|
||||||
) as $Val);
|
) as $Val);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -393,9 +393,9 @@ abstract class _$$DeviceInfoImplCopyWith<$Res>
|
|||||||
bool isFips,
|
bool isFips,
|
||||||
bool isSky,
|
bool isSky,
|
||||||
bool pinComplexity,
|
bool pinComplexity,
|
||||||
int resetBlocked,
|
|
||||||
int fipsCapable,
|
int fipsCapable,
|
||||||
int fipsApproved});
|
int fipsApproved,
|
||||||
|
int resetBlocked});
|
||||||
|
|
||||||
@override
|
@override
|
||||||
$DeviceConfigCopyWith<$Res> get config;
|
$DeviceConfigCopyWith<$Res> get config;
|
||||||
@ -423,9 +423,9 @@ class __$$DeviceInfoImplCopyWithImpl<$Res>
|
|||||||
Object? isFips = null,
|
Object? isFips = null,
|
||||||
Object? isSky = null,
|
Object? isSky = null,
|
||||||
Object? pinComplexity = null,
|
Object? pinComplexity = null,
|
||||||
Object? resetBlocked = null,
|
|
||||||
Object? fipsCapable = null,
|
Object? fipsCapable = null,
|
||||||
Object? fipsApproved = null,
|
Object? fipsApproved = null,
|
||||||
|
Object? resetBlocked = null,
|
||||||
}) {
|
}) {
|
||||||
return _then(_$DeviceInfoImpl(
|
return _then(_$DeviceInfoImpl(
|
||||||
null == config
|
null == config
|
||||||
@ -464,10 +464,6 @@ class __$$DeviceInfoImplCopyWithImpl<$Res>
|
|||||||
? _value.pinComplexity
|
? _value.pinComplexity
|
||||||
: pinComplexity // ignore: cast_nullable_to_non_nullable
|
: pinComplexity // ignore: cast_nullable_to_non_nullable
|
||||||
as bool,
|
as bool,
|
||||||
null == resetBlocked
|
|
||||||
? _value.resetBlocked
|
|
||||||
: resetBlocked // ignore: cast_nullable_to_non_nullable
|
|
||||||
as int,
|
|
||||||
null == fipsCapable
|
null == fipsCapable
|
||||||
? _value.fipsCapable
|
? _value.fipsCapable
|
||||||
: fipsCapable // ignore: cast_nullable_to_non_nullable
|
: fipsCapable // ignore: cast_nullable_to_non_nullable
|
||||||
@ -476,6 +472,10 @@ class __$$DeviceInfoImplCopyWithImpl<$Res>
|
|||||||
? _value.fipsApproved
|
? _value.fipsApproved
|
||||||
: fipsApproved // ignore: cast_nullable_to_non_nullable
|
: fipsApproved // ignore: cast_nullable_to_non_nullable
|
||||||
as int,
|
as int,
|
||||||
|
null == resetBlocked
|
||||||
|
? _value.resetBlocked
|
||||||
|
: resetBlocked // ignore: cast_nullable_to_non_nullable
|
||||||
|
as int,
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -493,9 +493,9 @@ class _$DeviceInfoImpl extends _DeviceInfo {
|
|||||||
this.isFips,
|
this.isFips,
|
||||||
this.isSky,
|
this.isSky,
|
||||||
this.pinComplexity,
|
this.pinComplexity,
|
||||||
this.resetBlocked,
|
|
||||||
this.fipsCapable,
|
this.fipsCapable,
|
||||||
this.fipsApproved)
|
this.fipsApproved,
|
||||||
|
this.resetBlocked)
|
||||||
: _supportedCapabilities = supportedCapabilities,
|
: _supportedCapabilities = supportedCapabilities,
|
||||||
super._();
|
super._();
|
||||||
|
|
||||||
@ -528,15 +528,15 @@ class _$DeviceInfoImpl extends _DeviceInfo {
|
|||||||
@override
|
@override
|
||||||
final bool pinComplexity;
|
final bool pinComplexity;
|
||||||
@override
|
@override
|
||||||
final int resetBlocked;
|
|
||||||
@override
|
|
||||||
final int fipsCapable;
|
final int fipsCapable;
|
||||||
@override
|
@override
|
||||||
final int fipsApproved;
|
final int fipsApproved;
|
||||||
|
@override
|
||||||
|
final int resetBlocked;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String toString() {
|
String toString() {
|
||||||
return 'DeviceInfo(config: $config, serial: $serial, version: $version, formFactor: $formFactor, supportedCapabilities: $supportedCapabilities, isLocked: $isLocked, isFips: $isFips, isSky: $isSky, pinComplexity: $pinComplexity, resetBlocked: $resetBlocked, fipsCapable: $fipsCapable, fipsApproved: $fipsApproved)';
|
return 'DeviceInfo(config: $config, serial: $serial, version: $version, formFactor: $formFactor, supportedCapabilities: $supportedCapabilities, isLocked: $isLocked, isFips: $isFips, isSky: $isSky, pinComplexity: $pinComplexity, fipsCapable: $fipsCapable, fipsApproved: $fipsApproved, resetBlocked: $resetBlocked)';
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
@ -557,12 +557,12 @@ class _$DeviceInfoImpl extends _DeviceInfo {
|
|||||||
(identical(other.isSky, isSky) || other.isSky == isSky) &&
|
(identical(other.isSky, isSky) || other.isSky == isSky) &&
|
||||||
(identical(other.pinComplexity, pinComplexity) ||
|
(identical(other.pinComplexity, pinComplexity) ||
|
||||||
other.pinComplexity == pinComplexity) &&
|
other.pinComplexity == pinComplexity) &&
|
||||||
(identical(other.resetBlocked, resetBlocked) ||
|
|
||||||
other.resetBlocked == resetBlocked) &&
|
|
||||||
(identical(other.fipsCapable, fipsCapable) ||
|
(identical(other.fipsCapable, fipsCapable) ||
|
||||||
other.fipsCapable == fipsCapable) &&
|
other.fipsCapable == fipsCapable) &&
|
||||||
(identical(other.fipsApproved, fipsApproved) ||
|
(identical(other.fipsApproved, fipsApproved) ||
|
||||||
other.fipsApproved == fipsApproved));
|
other.fipsApproved == fipsApproved) &&
|
||||||
|
(identical(other.resetBlocked, resetBlocked) ||
|
||||||
|
other.resetBlocked == resetBlocked));
|
||||||
}
|
}
|
||||||
|
|
||||||
@JsonKey(ignore: true)
|
@JsonKey(ignore: true)
|
||||||
@ -578,9 +578,9 @@ class _$DeviceInfoImpl extends _DeviceInfo {
|
|||||||
isFips,
|
isFips,
|
||||||
isSky,
|
isSky,
|
||||||
pinComplexity,
|
pinComplexity,
|
||||||
resetBlocked,
|
|
||||||
fipsCapable,
|
fipsCapable,
|
||||||
fipsApproved);
|
fipsApproved,
|
||||||
|
resetBlocked);
|
||||||
|
|
||||||
@JsonKey(ignore: true)
|
@JsonKey(ignore: true)
|
||||||
@override
|
@override
|
||||||
@ -607,9 +607,9 @@ abstract class _DeviceInfo extends DeviceInfo {
|
|||||||
final bool isFips,
|
final bool isFips,
|
||||||
final bool isSky,
|
final bool isSky,
|
||||||
final bool pinComplexity,
|
final bool pinComplexity,
|
||||||
final int resetBlocked,
|
|
||||||
final int fipsCapable,
|
final int fipsCapable,
|
||||||
final int fipsApproved) = _$DeviceInfoImpl;
|
final int fipsApproved,
|
||||||
|
final int resetBlocked) = _$DeviceInfoImpl;
|
||||||
_DeviceInfo._() : super._();
|
_DeviceInfo._() : super._();
|
||||||
|
|
||||||
factory _DeviceInfo.fromJson(Map<String, dynamic> json) =
|
factory _DeviceInfo.fromJson(Map<String, dynamic> json) =
|
||||||
@ -634,12 +634,12 @@ abstract class _DeviceInfo extends DeviceInfo {
|
|||||||
@override
|
@override
|
||||||
bool get pinComplexity;
|
bool get pinComplexity;
|
||||||
@override
|
@override
|
||||||
int get resetBlocked;
|
|
||||||
@override
|
|
||||||
int get fipsCapable;
|
int get fipsCapable;
|
||||||
@override
|
@override
|
||||||
int get fipsApproved;
|
int get fipsApproved;
|
||||||
@override
|
@override
|
||||||
|
int get resetBlocked;
|
||||||
|
@override
|
||||||
@JsonKey(ignore: true)
|
@JsonKey(ignore: true)
|
||||||
_$$DeviceInfoImplCopyWith<_$DeviceInfoImpl> get copyWith =>
|
_$$DeviceInfoImplCopyWith<_$DeviceInfoImpl> get copyWith =>
|
||||||
throw _privateConstructorUsedError;
|
throw _privateConstructorUsedError;
|
||||||
|
@ -45,9 +45,9 @@ _$DeviceInfoImpl _$$DeviceInfoImplFromJson(Map<String, dynamic> json) =>
|
|||||||
json['is_fips'] as bool,
|
json['is_fips'] as bool,
|
||||||
json['is_sky'] as bool,
|
json['is_sky'] as bool,
|
||||||
json['pin_complexity'] as bool,
|
json['pin_complexity'] as bool,
|
||||||
(json['reset_blocked'] as num).toInt(),
|
|
||||||
(json['fips_capable'] as num).toInt(),
|
(json['fips_capable'] as num).toInt(),
|
||||||
(json['fips_approved'] as num).toInt(),
|
(json['fips_approved'] as num).toInt(),
|
||||||
|
(json['reset_blocked'] as num).toInt(),
|
||||||
);
|
);
|
||||||
|
|
||||||
Map<String, dynamic> _$$DeviceInfoImplToJson(_$DeviceInfoImpl instance) =>
|
Map<String, dynamic> _$$DeviceInfoImplToJson(_$DeviceInfoImpl instance) =>
|
||||||
@ -62,9 +62,9 @@ Map<String, dynamic> _$$DeviceInfoImplToJson(_$DeviceInfoImpl instance) =>
|
|||||||
'is_fips': instance.isFips,
|
'is_fips': instance.isFips,
|
||||||
'is_sky': instance.isSky,
|
'is_sky': instance.isSky,
|
||||||
'pin_complexity': instance.pinComplexity,
|
'pin_complexity': instance.pinComplexity,
|
||||||
'reset_blocked': instance.resetBlocked,
|
|
||||||
'fips_capable': instance.fipsCapable,
|
'fips_capable': instance.fipsCapable,
|
||||||
'fips_approved': instance.fipsApproved,
|
'fips_approved': instance.fipsApproved,
|
||||||
|
'reset_blocked': instance.resetBlocked,
|
||||||
};
|
};
|
||||||
|
|
||||||
const _$FormFactorEnumMap = {
|
const _$FormFactorEnumMap = {
|
||||||
|
Loading…
Reference in New Issue
Block a user