copyWith method
MenuItemModel
copyWith({
- String? documentID,
- String? text,
- String? description,
- IconModel? icon,
- ActionModel? action,
override
Implementation
@override
MenuItemModel copyWith({
String? documentID,
String? text,
String? description,
IconModel? icon,
ActionModel? action,
}) {
return MenuItemModel(
documentID: documentID ?? this.documentID,
text: text ?? this.text,
description: description ?? this.description,
icon: icon ?? this.icon,
action: action ?? this.action,
);
}