Color class

背景色,格式为 RGB 定义下的 Hex 值,不要带 # 号,如 0xFFB6C1 表示浅粉色。默认0x000000,黑色。

Annotations

Constructors

Color(int red, int green, int blue)
Constructs a Color
Color.fromJson(Map<String, dynamic> json)
factory

Properties

blue int
蓝。
final
green int
绿。
final
hashCode int
The hash code for this object. [...]
read-only, inherited
red int
红。
final
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
toJson() Map<String, dynamic>
toString() String
Returns a string representation of this object.
inherited

Operators

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