SeniorSignature class

Constructors

SeniorSignature({required String emptySignatureText, required SeniorModalDefinitions modalClear, required SeniorModalDefinitions modalGoBack, required dynamic onSaveSignature(SignatureData signature), SeniorSignatureStyle? style})
Allows you to collect signatures and turn them into image files.

Properties

emptySignatureText String
The text displayed within the signature field when it is empty.
final
hashCode int
The hash code for this object.
no setterinherited
modalClear SeniorModalDefinitions
The modal definitions presented when activating the option to clear the signature.
final
modalGoBack SeniorModalDefinitions
The modal definitions presented when activating the option to return with the signature field filled in.
final
onSaveSignature → dynamic Function(SignatureData signature)
Callback function executed when signature is saved. Returns a SignatureData object, SignatureData.file, which contains the signature in file format, and SignatureData.points, which contains the points exported from the signature.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
style SeniorSignatureStyle?
The style definitions for the component. Allows you to configure: SeniorSignatureStyle.backgroundColor the background color of the screen. SeniorSignatureStyle.clearButtonIconColor the icon color of the clear signature button. SeniorSignatureStyle.disabledClearButtonIconColor the icon color of the clear signature button when it is disabled. SeniorSignatureStyle.disabledSaveButtonIconColor the icon color of the save signature button when it is disabled. SeniorSignatureStyle.emptySignatureTextColor the color of the text displayed inside the signature field when it is empty. SeniorSignatureStyle.saveButtonIconColor the icon color of the save signature button. SeniorSignatureStyle.signatureBackgrounColor the background color of the signature field. SeniorSignatureStyle.signatureDottedBorderColor the signature field dotted border color.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pickImage({required BuildContext context, List<Point>? points}) → void
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.
toString() String
A string representation of this object.
inherited

Operators

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