import 'package:byod/models/category.dart';
import 'package:flutter_bloc/flutter_bloc.dart';

class CategoryMenu extends Cubit<List<Category>> {
  CategoryMenu() : super([]);

  // Future<List<Category>> getCatAndMenu(String branchCode, String brandCode,
  //     String role, String cashierName, String token) async {
  //   var apiGetCatAndMenu =
  //       await Api.getCategory(branchCode, brandCode, role, cashierName, token);
  //   return apiGetCatAndMenu;
  // }

  // void catAndMenu(String branchCode, String brandCode, String role,
  //     String cashierName, String token) {
  //   getCatAndMenu(branchCode, brandCode, role, cashierName, token)
  //       .then((value) {
  //     emit(value);
  //   });
  // }
}
