filterQuality property Null safety

FilterQuality filterQuality

Controls the performance vs quality trade-off to use when sampling bitmaps, as with an ImageShader, or when drawing images, as with Canvas.drawImage, Canvas.drawImageRect, Canvas.drawImageNine or Canvas.drawAtlas.

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);
  final int encoded = value.index;
  _data.setInt32(_kFilterQualityOffset, encoded, _kFakeHostEndian);
}