copyWith method

UISectionHeader copyWith({
  1. Key? key,
  2. String? title,
  3. IconData? icon,
  4. Color? iconColor,
})

Implementation

UISectionHeader copyWith({
  Key? key,
  String? title,
  IconData? icon,
  Color? iconColor,
}) {
  return UISectionHeader(
    key: key ?? this.key,
    title: title ?? this.title,
    icon: icon ?? this.icon,
    iconColor: iconColor ?? this.iconColor,
  );
}