filterQuality property

FilterQuality filterQuality

Controls the performance vs quality trade-off to use when applying filters, such as maskFilter, or when drawing images, as with Canvas.drawImageRect or Canvas.drawImageNine.

Defaults to FilterQuality.none.

Implementation

// TODO(ianh): verify that the image drawing methods actually respect this
FilterQuality get filterQuality {
  return FilterQuality.values[_data.getInt32(_kFilterQualityOffset, _kFakeHostEndian)];
}
void filterQuality= (FilterQuality value)

Implementation

set filterQuality(FilterQuality value) {
  assert(value != null); // ignore: unnecessary_null_comparison
  final int encoded = value.index;
  _data.setInt32(_kFilterQualityOffset, encoded, _kFakeHostEndian);
}