FixedViewPort class
Provides a statically defined height and width.
Throws AssertionError if height or width are null or negative.
See also:
- ViewPort - defines rendering area size.
- ViewPortWidget - InheritedWidget that holds a ViewPort configuration
- ViewPorts - collection of the most regular ViewPort compositions
- MediaQuerySizeViewPort - ViewPort adapter for a MediaQueryData
- MinimalOfViewPort - takes two ViewPort instances and chooses the minimal width and height
- MaximalOfViewPort - takes two ViewPort instances and chooses the maximal width and height
Constructors
- FixedViewPort({double height = double.infinity, double width = double.infinity})
-
const
Properties
- aspectRatio → double
-
width / height ratio.
no setteroverride
- hashCode → int
-
The hash code for this object.
no setteroverride
- height → double
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- width → 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.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override