maximumStrokeWidth property

double get maximumStrokeWidth

Gets the maximum stroke width assigned to RenderSignaturePad.

Default value is 5.0.

Implementation

double get maximumStrokeWidth => _maximumStrokeWidth;
set maximumStrokeWidth (double value)

Sets the maximum stroke width for RenderSignaturePad.

Default value is 5.0. The width of the signature stroke can be customized by setting the minimumStrokeWidth and maximumStrokeWidth properties.

The minimumStrokeWidth defines the minimum thickness of the stroke and the maximumStrokeWidth defines the maximum thickness of the signature stroke.

The stroke will be drawn in RenderSignaturePad based on the speed of the stroke gesture within its minimum and maximum stroke width ranges. So that the signature will be more realistic.

Implementation

set maximumStrokeWidth(double value) {
  if (_maximumStrokeWidth == value) {
    return;
  }
  _maximumStrokeWidth = value;
  _strokeWidthChanged();
  markNeedsPaint();
}