This commit is contained in:
roman-zm 2024-02-25 02:07:15 +03:00
parent ba768af55e
commit e1a547cc4a

View File

@ -19,7 +19,7 @@ class CubitAccessor<C extends BlocBase<S>, S> {
CubitAccessor(this.context);
C get bloc => context.read();
C get cubit => context.read();
T select<T>(Selector<T, S> selector) =>
context.select<C, T>((cubit) => selector(cubit.state));