BlossomTabController<T> class

set initial currentTab by passing _currentTab, afterward change happen automatically.

To keep track of state change use BlossomTabControllerScopeDescendant as parent

Inheritance
Annotations
  • @JsonSerializable(explicitToJson: true)

Constructors

BlossomTabController({String? currentTab, required List<BlossomTab<T>> tabs})

Properties

currentTab String?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
listenerCount int
Returns the number of listeners listening to this model.
no setterinherited
pageController PageController
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tabs List<BlossomTab<T>>
final

Methods

addListener(VoidCallback listener) → void
listener will be invoked when the model changes.
inherited
addTab(BlossomTab<T> tab) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyListeners() → void
Should be called only by Model when the model has changed.
inherited
removeListener(VoidCallback listener) → void
listener will no longer be invoked when the model changes.
inherited
removeTabById(String id) → void
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

fromJson<S>(Map<String, dynamic> json, S dataFromJson(Map<String, dynamic>)) BlossomTabController<S>