SignatureModel constructor

SignatureModel(
  1. WidgetModel parent,
  2. String? id, {
  3. List<Point>? 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 parent, String? id, {
  List<Point>? points,
  double? width,
  double? height,
  this.backgroundColor = Colors.grey,
  this.penColor = Colors.black,
  this.penStrokeWidth = 3.0}) : super(parent, id)
{
  if ((points != null) && (points.isNotEmpty)) this.points.addAll(points);
  super.width  = width;
  super.height = height;
}