AppBarPosition class

Inheritance

Constructors

AppBarPosition({required TickerProvider vsync, required AppBarBehavior behavior, double initialOffset = 0})

Properties

behavior ↔ AppBarBehavior
getter/setter pair
expandedPercent → double
The current expansion percentage(0.0 ~ 1.0) of the appbar.
no setter
expandedPixels → double
Returns the pixels representing the expanded state of the appbar.
no setter
extent → double
Returns the pixels where the appbar can scroll.
no setter
hashCode → int
The hash code for this object.
no setterinherited
lentPixels ↔ double
getter/setter pair
maxExtent ↔ double
getter/setter pair
minExtent ↔ double
getter/setter pair
offset ↔ double
Returns the normalized pixels of the appbar position.
getter/setter pair
pixels → double
Returns the current intrinsic pixels of the appbar position.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
shrinkedPercent → double
The current shrinking percentage(0.0 ~ 1.0) of the appbar.
no setter
shrinkedPixels → double
Returns the pixels representing the shrinked state of the appbar.
no setter
vsync ↔ TickerProvider
getter/setter pair

Methods

addListener(VoidCallback listener) → void
Register a closure to be called when the object notifies its listeners.
override
clearAlign() → void
expand({bool useAnimate = true}) → void
Expands the appbar to its expanded state, optionally with animation.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyListeners() → void
notifyScrollEnd(NestedScrollPosition scroll) → bool
Animates alignment of the appbar by a given scroll position and the alignment behavior of the current behavior.
performAlignment(AppBarAlignmentCommand command) → void
Animates alignment of the appbar by a given scroll position and a given appbar alignment behavior.
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that the object notifies.
override
setPixels(double newPixels) → double
Returns the value that finally reflected newPixels.
setPixelsWithDelta(double delta) → double
Returns the value that finally reflected delta.
shrink({bool useAnimate = true}) → void
Shrinks the appbar to its shrinked state, optionally with animation.
toString() → String
A string representation of this object.
inherited

Operators

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