copyWith method
MenuItemEntity
copyWith({
- String? documentID,
- String? text,
- String? description,
- IconEntity? icon,
- 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,
);
}