RitoLayoutRequest class final

Constructors

RitoLayoutRequest({required double viewportWidth, required double viewportHeight, required double marginTop, required double marginRight, required double marginBottom, required double marginLeft, required RitoSpreadMode spreadMode, required bool firstPageAlone, required double spreadGap, required double rootFontSize, double? lineHeightOverride, String? fontFamilyOverride})
const

Properties

firstPageAlone bool
final
fontFamilyOverride String?
Reader font family, applied as a UA font-family: <list> !important over the whole publication, so it replaces the book's own families rather than sitting behind them. The value is a CSS font-family list, not one name: 'Noto Serif JP, serif' is valid and preferred, because the generic tail is what the pinned faces attach to.
final
hashCode int
The hash code for this object.
no setterinherited
lineHeightOverride double?
Reader line-height, applied as a UA line-height: <value> !important over the whole publication. It is a unitless CSS scale relative to font size — 1.5 means 1.5x, not 1.5px — so it is the "line height scale" a reader setting exposes. Null leaves the book's own line heights alone.
final
marginBottom double
final
marginLeft double
final
marginRight double
final
marginTop double
final
rootFontSize double
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
spreadGap double
final
spreadMode RitoSpreadMode
final
viewportHeight double
final
viewportWidth double
final

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