ColorInfo class

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

Annotations
  • @JsonSerializable()

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.
no setterinherited
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.
no setterinherited
score double
Image-specific score for this color. Value in range [0, 1].
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent 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