HexColor.fromString constructor Null safety

HexColor.fromString(
  1. String hexColor
)

Implementation

factory HexColor.fromString(String hexColor) {
  return HexColor(_getColorFromHex(hexColor));
}