alignment property

Alignment get alignment

Controls how the artboard is aligned within its bounds.

When the artboard's dimensions don't match the widget size exactly, this determines where the artboard is positioned. For example:

The alignment is used in conjunction with fit to determine the final position of the artboard content.

Implementation

Alignment get alignment => _alignment;
set alignment (Alignment value)

Implementation

set alignment(Alignment value) {
  if (_alignment == value) return;

  _alignment = value;
  notifyListeners();
}