getColor method Null safety

Color? getColor()

get the Color

Implementation

Color? getColor() {
  return _color;
}