FractionHeightModel class

Model used to calculate the fixed offset of the ToggleSheet

Use it then you need to your ToggleSheet be the fixed height based on fraction ratio.

Defines ToggleSheet height from fraction ratio of the viewport of the screen.

For example fraction = .9 then viewport height is 800, the height of sheet will be 720 pixels

Implemented types

Constructors

FractionHeightModel(double fraction)

Properties

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

Methods

getHeight(double availablePixels) double
Returns the offset height for the ToggleSheetController to define min height.
override
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