copyWith method

MenuItemEntity copyWith({
  1. String? documentID,
  2. String? text,
  3. String? description,
  4. IconEntity? icon,
  5. ActionEntity? action,
})

Implementation

MenuItemEntity copyWith({
  String? documentID,
  String? text,
  String? description,
  IconEntity? icon,
  ActionEntity? action,
}) {
  return MenuItemEntity(
    text: text ?? this.text,
    description: description ?? this.description,
    icon: icon ?? this.icon,
    action: action ?? this.action,
  );
}