ColorParser.color constructor

ColorParser.color(
  1. Color color
)

get the object of this class using material color

Implementation

ColorParser.color(Color color) {
  this._color = color;
  _calculateFromRGB();
}