isAntiAlias property

bool isAntiAlias

Whether to apply anti-aliasing to lines and images drawn on the canvas.

Defaults to true.


bool get isAntiAlias {
  return _data.getInt32(_kIsAntiAliasOffset, _kFakeHostEndian) == 0;
void isAntiAlias=(bool value)


set isAntiAlias(bool value) {
  // We encode true as zero and false as one because the default value, which
  // we always encode as zero, is true.
  final int encoded = value ? 0 : 1;
  _data.setInt32(_kIsAntiAliasOffset, encoded, _kFakeHostEndian);