SheetStateInfo class

Information about the current state of a GlassModalSheet.

Constructors

SheetStateInfo({required GlassSheetState state, required double progress, required bool isExpanded, double submergedBottom = 0.0})
Creates a SheetStateInfo snapshot.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
isExpanded → bool
Whether the sheet is currently in its expanded (full) state.
final
progress → double
Expansion progress from 0.0 (hidden/peek) to 1.0 (full).
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
state → GlassSheetState
The current snap state.
final
submergedBottom → double
The distance in logical pixels that the sheet's bottom edge is submerged past the bottom of the device screen (e.g. to hide bottom rounded corners in GlassSheetState.full), or 0.0 if resting at or above the screen edge.
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