trackColor property Null safety

Color trackColor

Color of the track. Mustn't be null.

Implementation

Color get trackColor => _trackColor;
void trackColor=(Color value)

Implementation

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

  _trackColor = value;
  notifyListeners();
}