ColorInfo class Null safety

Color information consists of RGB channels, score, and the fraction of the image that the color occupies in the image.

Annotations

Constructors

ColorInfo({required Color color, required double score, required double pixelFraction})
ColorInfo.fromJson(Map<String, dynamic> json)
factory

Properties

color Color
RGB components of the color.
final
hashCode int
The hash code for this object.
read-onlyinherited
pixelFraction double
The fraction of pixels the color occupies in the image. Value in range [0, 1].
final
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
score double
Image-specific score for this color. Value in range [0, 1].
final

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.
override

Operators

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