getLineColor method

dynamic getLineColor(
  1. int index
)

Implementation

getLineColor(int index) {
  if (index == stepCount - 1 && !isShowLastLine) {
    return Colors.transparent;
  } else if (isOnlyLightCircle) {
    //仅仅点亮圆
    return ColorsUtil.hex2Color(normalLineColor!);
  } else if (index <= lightIndex) {
    return ColorsUtil.hex2Color(lightLineColor!);
  } else {
    //只点亮圈或者其他的
    return ColorsUtil.hex2Color(normalLineColor!);
  }
}