RandomColor class

随机颜色

Constructors

RandomColor({int red, int blue, int green, double opacity, int alpha})
随机颜色,包括透明度 如要限定范围,请使用RandomColor.range()
RandomColor.range({int red, List<int> reds, int blue, List<int> blues, int green, List<int> greens, double opacity, List<double> opacities, int alpha, List<int> alphas})
根据范围随机,范围为:min, max 请自行校验参数

Properties

alpha int
read-only
blue int
read-only
color Color
final
green int
read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
opacity double
read-only
red int
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString({bool withAlpha = true}) String
A string representation of this object. [...]
override
value({bool withAlpha = true}) int
withAlpha({int alpha = 255}) Color
withOpacity({double opacity = 1.0}) Color

Operators

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