LayoutAlgorithm class

Class used to set the underlying layout algorithm.

Properties

hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

isSupported() bool
Checks if the value is supported by the defaultTargetPlatform.
name() String
Gets the name of the value.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toNativeValue() String?
Gets String native value if supported by the current platform, otherwise null.
toString() String
A string representation of this object.
override
toValue() String
Gets String value.

Operators

operator ==(Object value) bool
The equality operator.
override

Static Properties

values Set<LayoutAlgorithm>
Set of all values of LayoutAlgorithm.
final

Static Methods

asNameMap() Map<String, LayoutAlgorithm>
Creates a map from the names of LayoutAlgorithm values to the values.
byName(String? name) LayoutAlgorithm?
Gets a possible LayoutAlgorithm instance value with name name.
fromNativeValue(String? value) LayoutAlgorithm?
Gets a possible LayoutAlgorithm instance from a native value.
fromValue(String? value) LayoutAlgorithm?
Gets a possible LayoutAlgorithm instance from String value.

Constants

NARROW_COLUMNS → const LayoutAlgorithm
NARROW_COLUMNS makes all columns no wider than the screen if possible. Only use this for API levels prior to Build.VERSION_CODES.KITKAT.
NORMAL → const LayoutAlgorithm
NORMAL means no rendering changes. This is the recommended choice for maximum compatibility across different platforms and Android versions.
TEXT_AUTOSIZING → const LayoutAlgorithm
TEXT_AUTOSIZING boosts font size of paragraphs based on heuristics to make the text readable when viewing a wide-viewport layout in the overview mode. It is recommended to enable zoom support InAppWebViewSettings.supportZoom when using this mode.