import 'package:absenkuv3/Repository/Model/mFilter.dart';
import 'package:flutter_bloc/flutter_bloc.dart';

abstract class FilterBottomKontakEvent{}

class setFilterBottomKontak extends FilterBottomKontakEvent{
  ModelFilter? modelFilter;
  setFilterBottomKontak(this.modelFilter);
}
abstract class FilterBottomKontakState{}

class setFilterKontakSuccess extends FilterBottomKontakState{
  ModelFilter? modelFilter;
  setFilterKontakSuccess(this.modelFilter);
}
class FilterKontakProgress extends FilterBottomKontakState{}

class FilterBottomKontakKaryawanBloc extends Bloc<FilterBottomKontakEvent, FilterBottomKontakState>{
  ModelFilter? modelFilterDataAbsensi;
  FilterBottomKontakKaryawanBloc(FilterBottomKontakState initialState) : super(initialState);
  @override
  Stream<FilterBottomKontakState> mapEventToState(FilterBottomKontakEvent event) async*{
    if(event is setFilterBottomKontak){
      yield setFilterKontakSuccess(event.modelFilter);
    }
  }
}