copyWith method

TabBarProps copyWith({
  1. List<TabBarItemProps>? tabs,
  2. int? selectedIndex,
  3. void onChanged(
    1. int index
    )?,
  4. 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,
  );
}