FaceVerifyResult class abstract

活体人脸核验结果

Available extensions
Annotations
  • @Freezed.new(toStringOverride: false)

Constructors

FaceVerifyResult({@Default.new(false) bool isSuccess, @Default.new('') String sign, @Default.new('') String liveRate, @Default.new('') String similarity, String? error, String? errorDomain, String? errorCode, String? errorDescription, String? errorReason})
const
factory
FaceVerifyResult.fromJson(Map<String, dynamic> json)
factory

Properties

copyWith → $FaceVerifyResultCopyWith<FaceVerifyResult>
Create a copy of FaceVerifyResult with the given fields replaced by the non-null parameter values.
no setterinherited
error → String?
人脸核身错误
no setterinherited
errorCode → String?
SDK 错误码
no setterinherited
errorDescription → String?
SDK 错误描述
no setterinherited
errorDomain → String?
SDK 错误域,用于判断请求是否到达人脸比对服务
no setterinherited
errorReason → String?
SDK 错误的详细原因
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
isSuccess → bool
人脸核身是否成功
no setterinherited
liveRate → String
活体检测分数
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sign → String
签名
no setterinherited
similarity → String
人脸比对分数
no setterinherited

Methods

map<TResult extends Object?>(TResult $default(_FaceVerifyResult value)) → TResult

Available on FaceVerifyResult, provided by the FaceVerifyResultPatterns extension

A switch-like method, using callbacks.
mapOrNull<TResult extends Object?>(TResult? $default(_FaceVerifyResult value)?) → TResult?

Available on FaceVerifyResult, provided by the FaceVerifyResultPatterns extension

A variant of map that fallback to returning null.
maybeMap<TResult extends Object?>(TResult $default(_FaceVerifyResult value)?, {required TResult orElse()}) → TResult

Available on FaceVerifyResult, provided by the FaceVerifyResultPatterns extension

A variant of map that fallback to returning orElse.
maybeWhen<TResult extends Object?>(TResult $default(bool isSuccess, String sign, String liveRate, String similarity, String? error, String? errorDomain, String? errorCode, String? errorDescription, String? errorReason)?, {required TResult orElse()}) → TResult

Available on FaceVerifyResult, provided by the FaceVerifyResultPatterns extension

A variant of when that fallback to an orElse callback.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Serializes this FaceVerifyResult to a JSON map.
inherited
toString() → String
A string representation of this object.
inherited
when<TResult extends Object?>(TResult $default(bool isSuccess, String sign, String liveRate, String similarity, String? error, String? errorDomain, String? errorCode, String? errorDescription, String? errorReason)) → TResult

Available on FaceVerifyResult, provided by the FaceVerifyResultPatterns extension

A switch-like method, using callbacks.
whenOrNull<TResult extends Object?>(TResult? $default(bool isSuccess, String sign, String liveRate, String similarity, String? error, String? errorDomain, String? errorCode, String? errorDescription, String? errorReason)?) → TResult?

Available on FaceVerifyResult, provided by the FaceVerifyResultPatterns extension

A variant of when that fallback to returning null

Operators

operator ==(Object other) → bool
The equality operator.
inherited