SimpleLine constructor

SimpleLine({
  1. double minPointDistance = 2.0,
  2. bool useBezierCurve = true,
})

Implementation

SimpleLine({
  /// 最小点距离,用于过滤过近的点,减少数据量
  this.minPointDistance = 2.0,

  /// 是否使用贝塞尔曲线平滑,默认 false(保持原有行为)
  /// 设置为 true 可以解决快速绘制时的折线感问题
  this.useBezierCurve = true,
});