copyWith method

OptionItem copyWith({
  1. dynamic onTap()?,
  2. IconData? iconData,
  3. String? title,
  4. String? subtitle,
})

Implementation

OptionItem copyWith({
  Function()? onTap,
  IconData? iconData,
  String? title,
  String? subtitle,
}) {
  return OptionItem(
    onTap: onTap ?? this.onTap,
    iconData: iconData ?? this.iconData,
    title: title ?? this.title,
    subtitle: subtitle ?? this.subtitle,
  );
}