PanelState enum Null safety

This describes the state of the panel.

Inheritance

Constructors

PanelState()
const

Values

dismissed → const PanelState

The panel is having height of 0.0.

When PanelController.dismiss is called, this is the state.

Note that a panel is in dismissed state, ONLY if the PanelSize.closedHeight is NOT 0.0. If it is 0.0, closed state is returned instead.

const PanelState(0)
closed → const PanelState

The panel is fully closed and having PanelSize.closedHeight.

const PanelState(1)
collapsed → const PanelState

The panel is collapsed and having PanelSize.collapsedHeight.

const PanelState(2)
expanded → const PanelState

The panel is fully expanded and having PanelSize.expandedHeight.

const PanelState(3)
animating → const PanelState

The panel is currently animating in some position. After this, panel would either be dismissed, closed, collapsed or expanded.

Note when user is swiping (moving) the panel manually, the state would be indefinite. But, when the user releases his finger and panel starts snapping (or scrolling, if snapping is turned off), this would be the state.

const PanelState(4)
indefinite → const PanelState

The current height of the panel is more than PanelSize.closedHeight, less than PanelSize.expandedHeight and not any of the specified in PanelSize (not exactly equal).

This is the case when panel is being manually swiped (moved) by the user. After releasing the finger, if snapping is turned on, panel would have either closed, collapsed or expanded state.

If snapping is turned off and not scrolling, panel stays in this state until moved by user or PanelController.

const PanelState(5)

Properties

hashCode int
The hash code for this object.
read-onlyinherited
index int
A numeric identifier for the enumerated value.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

values → const List<PanelState>
A constant List of the values in this enum, in order of their declaration.
[dismissed, closed, collapsed, expanded, animating, indefinite]