initParameters method

void initParameters({
  1. double frameRadius = 0.0,
  2. double pointRadius = 0.0,
  3. Color color = Colors.grey,
  4. Color highlightColor = Colors.blue,
  5. Color pathColor = Colors.blue,
  6. dynamic onFinishGesture(
    1. List<int>
    )?,
  7. dynamic updateView()?,
  8. double pathWidth = 5,
})

Implementation

void initParameters({
  double frameRadius = 0.0,
  double pointRadius = 0.0,
  Color color = Colors.grey,
  Color highlightColor = Colors.blue,
  Color pathColor = Colors.blue,
  Function(List<int>)? onFinishGesture,
  Function()? updateView,
  double pathWidth = 5,
}) {
  _frameRadius = frameRadius;
  _pointRadius = pointRadius;
  _color = color;
  _highlightColor = highlightColor;
  _pathColor = pathColor;
  _onFinishGesture = onFinishGesture;
  _updateView = updateView;
  _pathWidth = pathWidth;
  _initPoint();
}