asColor method Null safety

Color asColor()

Implementation

Color asColor() {
  return this;
}