copyWith method

IndexTabStyle copyWith({
  1. Color? textColor,
  2. Color? accentColor,
  3. double? tabBarHeight,
  4. double? tabBarRadius,
  5. double? indicatorRadius,
  6. EdgeInsetsGeometry? indicatorPadding,
  7. Color? labelColor,
  8. Color? unselectedLabelColor,
  9. TextStyle? labelStyle,
  10. TextStyle? unselectedLabelStyle,
  11. double? tabBarBgAlpha,
  12. String? tabSurahsLabel,
  13. String? tabJozzLabel,
  14. double? listItemRadius,
  15. double? surahRowAltBgAlpha,
  16. double? jozzAltBgAlpha,
  17. double? hizbItemAltBgAlpha,
})

Implementation

IndexTabStyle copyWith({
  Color? textColor,
  Color? accentColor,
  double? tabBarHeight,
  double? tabBarRadius,
  double? indicatorRadius,
  EdgeInsetsGeometry? indicatorPadding,
  Color? labelColor,
  Color? unselectedLabelColor,
  TextStyle? labelStyle,
  TextStyle? unselectedLabelStyle,
  double? tabBarBgAlpha,
  String? tabSurahsLabel,
  String? tabJozzLabel,
  double? listItemRadius,
  double? surahRowAltBgAlpha,
  double? jozzAltBgAlpha,
  double? hizbItemAltBgAlpha,
}) {
  return IndexTabStyle(
    textColor: textColor ?? this.textColor,
    accentColor: accentColor ?? this.accentColor,
    tabBarHeight: tabBarHeight ?? this.tabBarHeight,
    tabBarRadius: tabBarRadius ?? this.tabBarRadius,
    indicatorRadius: indicatorRadius ?? this.indicatorRadius,
    indicatorPadding: indicatorPadding ?? this.indicatorPadding,
    labelColor: labelColor ?? this.labelColor,
    unselectedLabelColor: unselectedLabelColor ?? this.unselectedLabelColor,
    labelStyle: labelStyle ?? this.labelStyle,
    unselectedLabelStyle: unselectedLabelStyle ?? this.unselectedLabelStyle,
    tabBarBgAlpha: tabBarBgAlpha ?? this.tabBarBgAlpha,
    tabSurahsLabel: tabSurahsLabel ?? this.tabSurahsLabel,
    tabJozzLabel: tabJozzLabel ?? this.tabJozzLabel,
    listItemRadius: listItemRadius ?? this.listItemRadius,
    surahRowAltBgAlpha: surahRowAltBgAlpha ?? this.surahRowAltBgAlpha,
    jozzAltBgAlpha: jozzAltBgAlpha ?? this.jozzAltBgAlpha,
    hizbItemAltBgAlpha: hizbItemAltBgAlpha ?? this.hizbItemAltBgAlpha,
  );
}