copyWith method

GestuMenuSecondaryItemWidget<G> copyWith({
  1. TextStyle? textStyle,
  2. Color? selectedColor,
  3. Color? selectedTextColor,
  4. BoxDecoration? decoration,
  5. 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,
  );
}