InjectedPageTabImp class

Inheritance
Mixed-in types
Available extensions

Constructors

InjectedPageTabImp({int initialIndex = 0, required int length, Duration duration = kTabScrollDuration, Curve curve = Curves.ease, double viewportFraction = 1.0, bool keepPage = true})

Properties

autoDisposeWhenNotUsed bool
finalinherited
completer Completer?
getter/setter pairinherited
connectionState ConnectionState
no setterinherited
creator Object? Function()
finalinherited
curve Curve
The curve the page/tab animation transition takes.
final
customStatus Object?
Custom status of the state. Set manually to mark the state with a particular tag to be used in your logic.
getter/setter pairinherited
duration Duration
The duration the page/tab transition takes.
final
error → dynamic
The error
no setterinherited
hasData bool
The state is mutated successfully.
no setterinherited
hasError bool
The stats has error
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
hasObservers bool
Whether the state has listeners or not
no setterinherited
index int
The index of the currently selected tab.
getter/setter pairinherited
indexIsChanging bool
True while we're animating from previousIndex to index as a consequence of calling animateTo.
no setterinherited
initialIndex int
The initial index the app start with.
getter/setter pair
initialSnapState SnapState<int>
no setterinherited
initialState int?
getter/setter pairinherited
isDone bool
The state is mutated using a stream and the stream is done.
no setterinherited
isIdle bool
The state is initialized and never mutated.
no setterinherited
isInitialized bool
getter/setter pairinherited
isStateInitialized bool
no setterinherited
isWaiting bool
The state is waiting for and asynchronous task to end.
no setterinherited
isWaitingToInitialize bool
getter/setter pairinherited
keepPage bool
ONLY for PageView
final
length int
The total number of tabs.
getter/setter pairoverride
mockableCreator Object? Function()
no setterinherited
observerLength int
no setterinherited
oldSnapState SnapState<int>?
no setterinherited
pageController PageController
Get the associated PageController
no setteroverride
previousIndex int
The index of the previously selected tab.
no setterinherited
removeFromReactiveModel VoidCallback?
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
snapState SnapState<int>
A snap representation of the state
no setterinherited
snapValue SnapState<int>
getter/setter pairinherited
state int
The current state
getter/setter pairinherited
stateAsync Future<int>
The current Async state
getter/setter pairinherited
stateInterceptorGlobal StateInterceptor<int>?
finalinherited
subscription StreamSubscription?
It is not null if the state is waiting for a Future or is subscribed to a Stream
getter/setter pairinherited
tabController TabController
Get the associated TabController
no setterinherited
viewportFraction double
ONLY for PageView
final

Methods

addCleaner(VoidCallback listener) VoidCallback
Add a callback to be executed when the state is disposed of.
inherited
addObserver({required ObserveReactiveModel listener, bool shouldAutoClean = false, bool isSideEffects = true}) VoidCallback
Add observer to this state.
inherited
animateTo(int value, {Duration duration = kTabScrollDuration, Curve curve = Curves.ease}) → void
Immediately sets index and previousIndex and then plays the animation from its current value to index.
inherited
cleanState() → void
Clean the state
inherited
dispose() → void
Dispose the state
override
disposeIfNotUsed() → void
Dispose the state if it has no listener
inherited
initialize() → void
inherited
initializer([TickerProvider? ticker]) → void
initializeState() FutureOr<int?>
Initialize the state
inherited
interceptState(SnapState<int> snap, StateInterceptor<int>? stateInterceptor) SnapState<int>?
inherited
middleSetCreator(StateStatus status, Object? result) → void
inherited
middleSetState(StateStatus status, Object? result, {SideEffects<int>? sideEffects, StateInterceptor<int>? stateInterceptor, bool shouldOverrideDefaultSideEffects(SnapState<int>)?}) → dynamic
inherited
nextView() Future<void>
Animates the controlled pages/tabs to the next page/tab.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notify({SnapState<int>? nextSnap, SideEffects<int>? sideEffects, bool shouldOverrideDefaultSideEffects(SnapState<int>)?, StateInterceptor<int>? stateInterceptor}) bool
Notify observers
inherited
onAll<R>({R onIdle()?, required R onWaiting()?, required R onError(dynamic error, VoidCallback refreshError)?, required R onData(int data)}) → R
Listen to the injected Model and rebuild when it emits a notification.
inherited
onOrElse<R>({R onIdle()?, R onWaiting()?, R onError(dynamic error, VoidCallback refreshError)?, R onData(int data)?, required R orElse(int data)}) → R
Listen to the injected Model and rebuild when it emits a notification.
inherited
onStateInitialized() → void
inherited
previousView() Future<void>
Animates the controlled pages/tabs to the previous page/tab.
inherited
rebuildState() → void
inherited
refresh() Future<int?>
Refresh the Injected state. Refreshing the state means reinitialize it and reinvoke its creation function and notify its listeners.
inherited
resetDefaultState() → void
inherited
setState(Object? mutator(int s), {SideEffects<int>? sideEffects, StateInterceptor<int>? stateInterceptor, bool shouldOverrideDefaultSideEffects(SnapState<int> snap)?, int debounceDelay = 0, int throttleDelay = 0}) Future<int?>
Mutate the state of the model and notify observers.
inherited
setStateNullable(Object? mutator(int? s), {required void middleSetState(StateStatus, dynamic result), required StackTrace? stackTrace}) FutureOr<int?>
inherited
setToHasData(dynamic data, {SideEffects<int>? sideEffects, bool shouldOverrideDefaultSideEffects(SnapState<int>)?, StateInterceptor<int>? stateInterceptor}) → void
Set the state to the data status
inherited
setToHasError(dynamic error, {StackTrace? stackTrace, VoidCallback? refresher, SideEffects<int>? sideEffects, bool shouldOverrideDefaultSideEffects(SnapState<int>)?, StateInterceptor<int>? stateInterceptor}) → void
Set the state to the error status
inherited
setToIsIdle([Object? data]) → void
Set the state to the idle status
inherited
setToIsWaiting({SideEffects<int>? sideEffects, bool shouldOverrideDefaultSideEffects(SnapState<int>)?, StateInterceptor<int>? stateInterceptor}) → void
Set the state to the waiting status
inherited
toString() String
A string representation of this object.
inherited
whenConnectionState<R>({R onIdle()?, required R onWaiting()?, required R onError(dynamic error)?, required R onData(int data)}) → R
inherited

Operators

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