copyWith method
TabBarProps
copyWith({
- List<
TabBarItemProps> ? tabs, - int? selectedIndex,
- void onChanged(
- int index
- bool? fill,
Implementation
TabBarProps copyWith({
List<TabBarItemProps>? tabs,
int? selectedIndex,
void Function(int index)? onChanged,
bool? fill,
}) {
return TabBarProps(
tabs: tabs ?? this.tabs,
selectedIndex: selectedIndex ?? this.selectedIndex,
onChanged: onChanged ?? this.onChanged,
fill: fill ?? this.fill,
);
}