$Color class Null safety

Used by:

  • chat:v1 : Color
  • documentai:v1 : GoogleTypeColor
  • drivelabels:v2 : GoogleTypeColor
  • fcm:v1 : Color
  • sheets:v4 : Color
  • vision:v1 : Color

Constructors

$Color({double? alpha, double? blue, double? green, double? red})
$Color.fromJson(Map json_)

Properties

alpha double?
The fraction of this color that should be applied to the pixel.
read / write
blue double?
The amount of blue in the color as a value in the interval [0, 1].
read / write
green double?
The amount of green in the color as a value in the interval [0, 1].
read / write
hashCode int
The hash code for this object.
read-onlyinherited
red double?
The amount of red in the color as a value in the interval [0, 1].
read / write
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited