copyWith method

AtomicActionListItem copyWith({
  1. String? text,
  2. String? subtext,
  3. IconData? icon,
  4. VoidCallback? onTap,
  5. bool? enabled,
  6. String? uniqueKey,
})

Implementation

AtomicActionListItem copyWith({
  String? text,
  String? subtext,
  IconData? icon,
  VoidCallback? onTap,
  bool? enabled,
  String? uniqueKey,
}) {
  return AtomicActionListItem(
    text: text ?? this.text,
    subtext: subtext ?? this.subtext,
    icon: icon ?? this.icon,
    onTap: onTap ?? this.onTap,
    enabled: enabled ?? this.enabled,
    uniqueKey: uniqueKey ?? this.uniqueKey,
  );
}