Back to Flutter Boost

BoostContainer class

doc/api/boost_container/BoostContainer-class.html

5.0.26.0 KB
Original Source

BoostContainer class

This class is an abstraction of native containers Each of which has a bunch of pages in the NavigatorExt

Inheritance

Constructors

BoostContainer({LocalKey key, PageInfo pageInfo})

Properties

hashCodeint The hash code for this object. [...] read-only, inherited hasListenersbool Whether any listeners are currently registered. [...] @protected, read-only, inherited keyLocalKey The local key final navigatorNavigatorState The navigator used in this container read-only pageInfoPageInfo The pageInfo for this container final pagesList<BoostPage> Getter for a list that cannot be changed read-only runtimeTypeType A representation of the runtime type of the object. read-only, inherited topPageBoostPage To get the top page in this container read-only

Methods

addListener(VoidCallback listener) → void Register a closure to be called when the object changes. [...] inherited addPage<T extends Object>(BoostPage page) → Future<T> add a BoostPage in this container and return its future result 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 and removeListener will throw after the object is disposed). [...] @mustCallSuper, inherited noSuchMethod(Invocation invocation) → dynamic Invoked when a non-existent method or property is accessed. [...] inherited notifyListeners() → void Call all the registered listeners. [...] @protected, @visibleForTesting, inherited numPages() → int Number of pages removeListener(VoidCallback listener) → void Remove a previously registered closure from the list of closures that are notified when the object changes. [...] inherited removePage(BoostPage page, {dynamic result}) → void remove a specific BoostPagetoString() → String A string representation of this object. [...] override

Operators

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

Static Methods

of(BuildContext context) → BoostContainer