BiometricAuthRequestedEvent constructor

BiometricAuthRequestedEvent(
  1. void eventHandler(
    1. BiometricAuthRequestedPayload payload
    )
)

Implementation

BiometricAuthRequestedEvent(void Function(BiometricAuthRequestedPayload payload) eventHandler)
    : super(
        TelegramEventType.biometricAuthRequested,
        (BiometricAuthRequestedPayloadJSObject payload) {
          eventHandler.call(BiometricAuthRequestedPayload(
            payload.isAuthenticated.toDart,
            payload.biometricToken?.toDart,
          ));
        }.toJS,
      );