isAntiAlias property

bool get isAntiAlias

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

Defaults to true.

Implementation

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

Implementation

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);
}