PanelController class

Constructors

PanelController()

Properties

hashCode int
The hash code for this object.
no setterinherited
isAttached bool
Determine if the panelController is attached to an instance of the SlidingUpPanel (this property must return true before any other functions can be used)
no setter
isPanelAnimating bool
Returns whether or not the panel is currently animating.
no setter
isPanelClosed bool
Returns whether or not the panel is closed.
no setter
isPanelOpen bool
Returns whether or not the panel is open.
no setter
isPanelShown bool
Returns whether or not the panel is shown/hidden.
no setter
panelPosition double
Gets the current panel position. Returns the % offset from collapsed state to the open state as a decimal between 0.0 and 1.0 where 0.0 is fully collapsed and 1.0 is full open.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

animatePanelToPosition(double value, {Duration? duration, Curve curve = Curves.linear}) Future<void>
Animates the panel position to the value. The value must between 0.0 and 1.0 where 0.0 is fully collapsed and 1.0 is completely open. (optional) duration specifies the time for the animation to complete (optional) curve specifies the easing behavior of the animation.
animatePanelToSnapPoint({Duration? duration, Curve curve = Curves.linear}) Future<void>
Animates the panel position to the snap point Requires that the SlidingUpPanel snapPoint property is not null (optional) duration specifies the time for the animation to complete (optional) curve specifies the easing behavior of the animation.
close() Future<void>
Closes the sliding panel to its collapsed state (i.e. to the minHeight)
hide() Future<void>
Hides the sliding panel (i.e. is invisible)
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
open() Future<void>
Opens the sliding panel fully (i.e. to the maxHeight)
show() Future<void>
Shows the sliding panel in its collapsed state (i.e. "un-hide" the sliding panel)
toString() String
A string representation of this object.
inherited

Operators

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