LayerModel constructor
LayerModel({})
Модель слоя на основе которой отрисовывается изображение на 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;