operator * method

RgbColour operator *(
  1. num value
)

Operator overloading for Dart API.

Implementation

RgbColour operator *(num value)
{
  return new RgbColour((red * value).toInt(), (green * value).toInt(), (blue * value).toInt());
}