invertColors property

bool invertColors

Whether the colors of the image are inverted when drawn.

Inverting the colors of an image applies a new color filter that will be composed with any user provided color filters. This is primarily used for implementing smart invert on iOS.

Implementation

bool get invertColors {
  return _data.getInt32(_kInvertColorOffset, _kFakeHostEndian) == 1;
}
void invertColors= (bool value)

Implementation

set invertColors(bool value) {
  _data.setInt32(_kInvertColorOffset, value ? 1 : 0, _kFakeHostEndian);
}