copyWith method

  1. @override
MenuItemModel copyWith({
  1. String? documentID,
  2. String? text,
  3. String? description,
  4. IconModel? icon,
  5. 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,
  );
}