import 'package:flutter_bloc/flutter_bloc.dart';

class FavSelectedBar extends Cubit<Map<String, dynamic>> {
  FavSelectedBar()
      : super({"index": 0, "id": ''}); // default list pertama String 0

  void selectedBarFav(int indexBar, String id) {
    Map<String, dynamic> result = {
      "index": indexBar,
      "id": id,
    };
    emit(result); // return index dan ID
  }
}
