14 lines
393 B
Dart
14 lines
393 B
Dart
import 'package:flutter_bloc/flutter_bloc.dart';
|
|
import 'package:ocbo_esign_mobile/blocs/qr/qr_event.dart';
|
|
import 'package:ocbo_esign_mobile/blocs/qr/qr_state.dart';
|
|
|
|
class QrBloc extends Bloc<QrEvent, QrState> {
|
|
QrBloc() : super(QrState('')) {
|
|
on<QrSetValue>((event, emit) {
|
|
emit(QrState(event.value));
|
|
});
|
|
on<QrGetValue>((event, emit) {
|
|
emit(state);
|
|
});
|
|
}
|
|
}
|