validColor method

Color validColor()

Implementation

Color validColor() {
  if (this.valid == true) return Colors.green;
  if (this.valid == null) return Colors.orange;

  return Colors.red;
}