NsgSimpleTabsController class
Constructors
-
NsgSimpleTabsController({int? initTab, String? initTabName, required List<NsgSimpleTabsTab> tabs})
-
Создание контроллера табов.
Если заполнено поле
initTabName
попытается найти нужный таб по имени и выставить при первоначальной загрузке виджета.
Если initTabName == null
или такого таба нет, выставит таб с индексом initTab
. Если initTab == null
- выставит индекс 0
.
Если initTab > tabs.length
- выставит индекс tabs.length
.
Methods
-
addListener(VoidCallback listener)
→ void
-
Register a closure to be called when the object changes.
inherited
-
contentBuilder(Widget? builder(NsgSimpleTabsTab currentTab, BuildContext context, Widget? widget))
→ Widget
-
Builder для отрисовки контента. Автоматически обновляет контент при смене таба. Возможна реализация сложной логики
-
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 will throw after the object is disposed).
inherited
-
getTabContent()
→ Widget
-
Отрисовка контента для таба из поля
pageContent
самого таба. Автоматически обновляет контент при смене таба.
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
notifyListeners()
→ void
-
Call all the registered listeners.
inherited
-
removeListener(VoidCallback listener)
→ void
-
Remove a previously registered closure from the list of closures that are
notified when the object changes.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited