BottomBarController class

A listenable controller for use with BottomExpandableBar

Inheritance

Constructors

BottomBarController({required TickerProvider vsync, bool snap = true, double? dragLength})
Creates a BottomBarController with the given vsync ticker provider

Properties

animation Animation<double>
no setter
dragLength double?
Distance that pointer should travel for fully open or close the sheet
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
hasListeners bool
Whether any listeners are currently registered.
no setterinherited
isClosed bool
Whether the panel is fully closed
no setter
isClosing bool
Whether the panel is being closed
no setter
isOpen bool
Whether the panel is fully opened
no setter
isOpening bool
Whether the panel is being opened
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
snap bool
Set to true if sheet should snap to Opened and Closed state
final
state Animation<double>
Returns the view of the internal AnimationController, which cannot mutate the state of the AnimationController
no setter

Methods

addListener(VoidCallback listener) → void
Register a closure to be called when the object changes.
inherited
close({double velocity = 1.0}) → void
Closes the panel
dispose() → void
Discards any resources used by the object. After this is called, the object is not in a usable state and should be discarded (calls to addListener will throw after the object is disposed).
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyListeners() → void
Call all the registered listeners.
inherited
onDrag(DragUpdateDetails details) → void
Updates the internal AnimationController with the DragUpdateDetails of a GestureDragUpdateCallback
onDragEnd(DragEndDetails details) → void
Updates the animation according to the DragEndDetails details of a GestureDragEndCallback
open({double velocity = 1.0}) → void
Opens the panel
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that are notified when the object changes.
inherited
swap({double velocity = 1.0}) → void
Opens the panel if it's currently closed, or closes the panel if it's currently open
toString() String
A string representation of this object.
inherited

Operators

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