HandSignature constructor

const HandSignature({
  1. Key? key,
  2. required HandSignatureControl control,
  3. @Deprecated('This property is deprecated since 3.1.0. Use the `drawer` property instead to specify the drawing type and style.') SignatureDrawType type = SignatureDrawType.shape,
  4. @Deprecated('This property is deprecated since 3.1.0. Use the `drawer` property instead to specify the drawing color.') Color color = Colors.black,
  5. @Deprecated('This property is deprecated since 3.1.0. Use the `drawer` property instead to specify the minimal stroke width.') double width = 1.0,
  6. @Deprecated('This property is deprecated since 3.1.0. Use the `drawer` property instead to specify the maximal stroke width.') double maxWidth = 10.0,
  7. HandSignatureDrawer? drawer,
  8. VoidCallback? onPointerDown,
  9. VoidCallback? onPointerUp,
  10. Set<PointerDeviceKind>? supportedDevices,
})

Creates a HandSignature widget.

key Controls how one widget replaces another widget in the tree. control The HandSignatureControl instance to manage the signature data. type The deprecated drawing type for the signature. color The deprecated color for the signature. width The deprecated minimal width for the signature. maxWidth The deprecated maximal width for the signature. drawer The custom drawer to use for rendering the signature. onPointerDown Callback for when drawing starts. onPointerUp Callback for when drawing ends. supportedDevices The set of pointer device types to recognize.

Implementation

const HandSignature({
  Key? key,
  required this.control,
  @Deprecated(
      'This property is deprecated since 3.1.0. Use the `drawer` property instead to specify the drawing type and style.')
  this.type = SignatureDrawType.shape,
  @Deprecated(
      'This property is deprecated since 3.1.0. Use the `drawer` property instead to specify the drawing color.')
  this.color = Colors.black,
  @Deprecated(
      'This property is deprecated since 3.1.0. Use the `drawer` property instead to specify the minimal stroke width.')
  this.width = 1.0,
  @Deprecated(
      'This property is deprecated since 3.1.0. Use the `drawer` property instead to specify the maximal stroke width.')
  this.maxWidth = 10.0,
  this.drawer,
  this.onPointerDown,
  this.onPointerUp,
  this.supportedDevices,
}) : super(key: key);