ChartRamp.fromHexes constructor

ChartRamp.fromHexes(
  1. List<String> hexes
)

Creates a ramp from a list of hex color strings.

Implementation

factory ChartRamp.fromHexes(List<String> hexes) {
  return ChartRamp(hexes.map(uvColorFromHex).toList(growable: false));
}