color property

Color color

The color to use when stroking or filling a shape.

Defaults to opaque black.

See also:

This color is not used when compositing. To colorize a layer, use colorFilter.


Color get color {
  final int encoded = _data.getInt32(_kColorOffset, _kFakeHostEndian);
  return Color(encoded ^ _kColorDefault);
void color=(Color value)


set color(Color value) {
  final int encoded = value.value ^ _kColorDefault;
  _data.setInt32(_kColorOffset, encoded, _kFakeHostEndian);