SignatureModel constructor

SignatureModel(
  1. WidgetModel parent,
  2. String? id, {
  3. List<PointVector>? points,
  4. double? width,
  5. double? height,
  6. Color backgroundColor = Colors.grey,
  7. Color penColor = Colors.black,
  8. double penStrokeWidth = 3.0,
})

Implementation

SignatureModel(WidgetModel super.parent, super.id,
    {List<PointVector>? points,
    double? width,
    double? height,
    this.backgroundColor = Colors.grey,
    this.penColor = Colors.black,
    this.penStrokeWidth = 3.0}) {
  if ((points != null) && (points.isNotEmpty)) this.points.addAll(points);
  if (width != null) this.width = width;
  if (height != null) this.height = height;
}