copyWith method

MenuDefEntity copyWith({
  1. String? documentID,
  2. String? appId,
  3. String? name,
  4. List<MenuItemEntity>? menuItems,
  5. bool? admin,
})

Implementation

MenuDefEntity copyWith({
  String? documentID,
  String? appId,
  String? name,
  List<MenuItemEntity>? menuItems,
  bool? admin,
}) {
  return MenuDefEntity(
    appId: appId ?? this.appId,
    name: name ?? this.name,
    menuItems: menuItems ?? this.menuItems,
    admin: admin ?? this.admin,
  );
}