copyWith method

  1. @override
MenuDefModel copyWith({
  1. String? documentID,
  2. String? appId,
  3. String? name,
  4. List<MenuItemModel>? menuItems,
  5. bool? admin,
})
override

Implementation

@override
MenuDefModel copyWith({
  String? documentID,
  String? appId,
  String? name,
  List<MenuItemModel>? menuItems,
  bool? admin,
}) {
  return MenuDefModel(
    documentID: documentID ?? this.documentID,
    appId: appId ?? this.appId,
    name: name ?? this.name,
    menuItems: menuItems ?? this.menuItems,
    admin: admin ?? this.admin,
  );
}