RequestPinDetails constructor
RequestPinDetails({
- required int signRequestId,
- PinRequestType? requestType,
- PinRequestErrorType? errorType,
- int? attemptsLeft,
Implementation
RequestPinDetails({
/// The ID given by Chrome in SignRequest.
required int signRequestId,
/// The type of code requested. Default is PIN.
PinRequestType? requestType,
/// The error template displayed to the user. This should be set if the
/// previous request failed, to notify the user of the failure reason.
PinRequestErrorType? errorType,
/// The number of attempts left. This is provided so that any UI can present
/// this information to the user. Chrome is not expected to enforce this,
/// instead stopPinRequest should be called by the extension with
/// errorType = MAX_ATTEMPTS_EXCEEDED when the number of pin requests is
/// exceeded.
int? attemptsLeft,
}) : _wrapped = $js.RequestPinDetails(
signRequestId: signRequestId,
requestType: requestType?.toJS,
errorType: errorType?.toJS,
attemptsLeft: attemptsLeft,
);