strokeColor property

Color get strokeColor

Gets the applied stroke color of RenderSignaturePad.

Default strokeColor will change based on the theme.

The default stroke color for the dark theme is Colors.white and the default color for the light theme is Colors.black.

Implementation

Color get strokeColor => _strokeColor;
set strokeColor (Color value)

Sets the stroke color for RenderSignaturePad.

Default strokeColor will change based on the theme.

The default stroke color for the dark theme is Colors.white and the default color for the light theme is Colors.black.

Implementation

set strokeColor(Color value) {
  if (_strokeColor == value) {
    return;
  }
  _strokeColor = value;
  _paintStrokeStyle.color = value;
  markNeedsPaint();
}