List<Color> get palette => _palette;
set palette(List<Color> value) { if (_palette != value) { // TODO(VijayakumarM): Add assertion. _palette = value; if (pointColorMapper == null) { markNeedsSegmentsPaint(); } } }