copyWith method
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,
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,
);
}