activeTabIndex property

int get activeTabIndex

Implementation

int get activeTabIndex => _activeTabIndex;
  1. @Input()
set activeTabIndex (dynamic index)

Index of the active panel, 0-based.

Default is 0.

Implementation

@Input()
set activeTabIndex(index) {
  // Tabs are already initialized; this is a programmatic tab change.
  if (_tabs.isNotEmpty) {
    _setActiveTab(index, true);
  } else {
    // Tab buttons are not initialized; this is the initial value being set.
    _activeTabIndex = index;
  }
}