color property Null safety

Color color

Color of the thumb. Mustn't be null.

Implementation

Color get color => _color;
void color=(Color value)

Implementation

set color(Color value) {
  assert(value != null);
  if (color == value) {
    return;
  }

  _color = value;
  notifyListeners();
}