getColor method

Color getColor(
  1. int index
)

Implementation

Color getColor(int index) {
  return colors.isNotEmpty ? colors[index] : color;
}