AppBarController class

This class provides essential functionality and roles for managing and tracking the appbar.

See Also, It performs the following roles:

  • Manages the competition for consuming scroll offsets among app bars.
  • Defines and manages the state of app bars.
  • Rebuilds the layout through alignment and listeners.
  • Or other related tasks.
Inheritance

Constructors

AppBarController()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addListener(VoidCallback listener) → void
Register a closure to be called when the object notifies its listeners.
override
alignAll(NestedScrollPosition position) → void
attach(AppBarPosition position) → void
Delegates the task of adding the appbar position to this controller to ensure it can be reliably detached and disposed later.
clearAlignAll() → void
consumeBouncing(double available, NestedScrollPosition scroll, AppbarPropagation propagation) double
consumeScroll(double available, NestedScrollPosition scroll, AppbarPropagation propagation) double
consumeWith(double available, AppbarPropagation propagation, dynamic func(double, AppBarPosition)) double
delegateFrom(AppBarController other) → void
Delegates all positions and context from a given controller to itself and removes all positions from the given controller, ensuring that each appbar position exists only once in the controller.
detach(AppBarPosition position) → void
Delegates the task of detaching and disposing of the appbar position to ensure consistency with attach function.
dispose() → void
Disposes all instances related the controller(e.g. TouchRippleEffect).
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyListeners() → void
Notifies that the state related to the controller has changed.
positionOf(int index) AppBarPosition?
Returns attached the appbar position in this controller by given index.
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that the object notifies.
override
synchronizeWith(int source, int target) → void
Synchronizes so that when the appbar corresponding to the first argument (index) is updated, the app bar corresponding to the second argument (index) is also updated.
toString() String
A string representation of this object.
inherited

Operators

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