PointData constructor

PointData({
  1. double x = 0,
  2. double y = 0,
  3. Offset offset = const Offset(0, 0),
  4. String? pointText,
  5. TextStyle? pointTextStyle,
  6. bool isClickable = true,
  7. required LineTouchData lineTouchData,
})

Implementation

PointData(
    {this.x = 0,
    this.y = 0,
    this.offset = const Offset(0, 0),
    this.pointText,
    this.pointTextStyle,
    this.isClickable = true,
    required this.lineTouchData}) {
  pointText ??= '$y';
  pointTextStyle ??= TextStyle(
      fontWeight: FontWeight.w500,
      fontSize: 12,
      color: BaseThemeConfig.instance.getConfig().commonConfig.colorTextBase);
}