Files
flutter-samples/chatty/lib/ui/home/home_cubit.dart
T
bd6bb66279 Stream Chatty added as example (#21)
* app updated

* readme updated

* rename base folder

* update chatty's readme

Co-authored-by: Neevash Ramdial <[email protected]>
2021-03-10 14:53:20 -04:00

8 lines
162 B
Dart

import 'package:flutter_bloc/flutter_bloc.dart';
class HomeCubit extends Cubit<int> {
HomeCubit() : super(0);
void onChangeTab(int index) => emit(index);
}