getLastData method

List<ChartItemLayoutState>? getLastData(
  1. bool need
)

Implementation

List<ChartItemLayoutState>? getLastData(bool need) {
  if (!need) {
    return null;
  }
  ChartBodyRender? e = controller.lastCoordinate?.charts[index];
  if (e == null) {
    return null;
  }
  return e.chartState.children;
}