onSignatureRequested method

Future<SignatureResponse> onSignatureRequested(
  1. SignatureRequest request
)

Called before the signature creation UI is shown, both from the annotation toolbar and when a signature form field is tapped.

Return SignatureResponse.proceed to show the built-in UI, optionally with another SignatureStyle, or SignatureResponse.cancel to not show it at all.

Implementation

Future<SignatureResponse> onSignatureRequested(
        SignatureRequest request) async =>
    const SignatureResponse.proceed();