copyWith method

TabsProps copyWith({
  1. List<TabItemProps>? tabs,
  2. int? selectedIndex,
  3. void onChanged(
    1. int index
    )?,
  4. bool? fill,
})

Implementation

TabsProps copyWith({
  List<TabItemProps>? tabs,
  int? selectedIndex,
  void Function(int index)? onChanged,
  bool? fill,
}) {
  return TabsProps(
    tabs: tabs ?? this.tabs,
    selectedIndex: selectedIndex ?? this.selectedIndex,
    onChanged: onChanged ?? this.onChanged,
    fill: fill ?? this.fill,
  );
}