LayerModel constructor

LayerModel({
  1. List<DynamicPoint>? points,
  2. required double viscosity,
  3. required double touchForce,
  4. required int forceLimit,
  5. Color? color,
  6. double scaleLayer = 1,
  7. Paint? paintStyle,
})

The layer model on the basis of which the image is drawn on Canvas

Implementation

LayerModel({
  List<DynamicPoint>? points,
  required this.viscosity,
  required this.touchForce,
  required this.forceLimit,
  this.color,
  this.scaleLayer = 1,
  Paint? paintStyle,
})  : points = points ?? [],
      paintStyle = paintStyle ?? Paint()
        ..color = color ?? const Color(0xA1FF0000)
        ..strokeWidth = 1
        ..style = PaintingStyle.fill;