copyWith method
GestuMenuSecondaryItemWidget<G>
copyWith({
- TextStyle? textStyle,
- Color? selectedColor,
- Color? selectedTextColor,
- BoxDecoration? decoration,
- ValueChanged<
G> ? onTap,
Implementation
GestuMenuSecondaryItemWidget<G> copyWith({
TextStyle? textStyle,
Color? selectedColor,
Color? selectedTextColor,
BoxDecoration? decoration,
ValueChanged<G>? onTap,
}) {
return GestuMenuSecondaryItemWidget<G>(
title: title,
index: index,
isSelected: isSelected,
prefixIconData: prefixIconData,
suffixIconData: suffixIconData,
onTap: onTap ?? this.onTap,
isPrimary: isPrimary,
textStyle: this.textStyle ?? textStyle,
selectedColor: this.selectedColor ?? selectedColor,
selectedTextColor: this.selectedTextColor ?? selectedTextColor,
decoration: this.decoration ?? decoration,
counter: counter,
);
}