pickImage method

void pickImage({
  1. required BuildContext context,
  2. List<Point>? points,
})

Triggers the screen to capture the signature. context the current context where the signature screen will be applied. points receives the points of a signature that can be preloaded in the signature field.

Implementation

void pickImage({
  required BuildContext context,
  List<Point>? points,
}) {
  Navigator.push(
    context,
    MaterialPageRoute(
      builder: (context) => SeniorSignatureView(
        emptySignatureText: emptySignatureText,
        modalClear: modalClear,
        modalGoBack: modalGoBack,
        onSaveSignature: onSaveSignature,
        points: points ?? [],
      ),
    ),
  );
}