SpreadFitting enum

How a page spread is fitted into the available viewport.

Controls whether pages are letterboxed, cropped to fill, or use an adaptive algorithm that selects the best strategy per spread.

Platform availability:

Inheritance
Available extensions

Values

fit → const SpreadFitting

Scale the spread to fit entirely within the viewport (letterbox).

The full page is always visible, but there may be empty space around it.

fill → const SpreadFitting

Scale and crop the spread to fill the viewport edge-to-edge.

No empty space is shown, but parts of the page may be clipped.

adaptive → const SpreadFitting

Let the SDK automatically choose between fit and fill per spread.

Typically selects fill for portrait single pages and fit for landscape or double-page spreads.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

values → const List<SpreadFitting>
A constant List of the values in this enum, in order of their declaration.