wip basics for bloc based state management
This commit is contained in:
7
lib/state/infrastructure/state_extensions.dart
Normal file
7
lib/state/infrastructure/state_extensions.dart
Normal file
@ -0,0 +1,7 @@
|
||||
import 'package:flutter/cupertino.dart';
|
||||
import 'package:flutter_bloc/flutter_bloc.dart';
|
||||
|
||||
extension StateExtensions on BuildContext {
|
||||
TState readController<TState>() => read<TState>();
|
||||
TState watchController<TState>() => watch<TState>();
|
||||
}
|
Reference in New Issue
Block a user