textColor method

Color textColor(
  1. SelectType selectType
)

Implementation

Color textColor(SelectType selectType) {
  if (selectType == SelectType.disabled) {
    return Colors.grey.withOpacity(0.3);
  } else if (selectType == SelectType.start ||
      selectType == SelectType.end ||
      selectType == SelectType.selected) {
    return Colors.white;
  } else {
    return widget.isDark ? Colors.white : Color(0xff333333);
  }
}