Skip to content

Instantly share code, notes, and snippets.

@irvine5k
Created July 2, 2020 21:35
Show Gist options
  • Save irvine5k/46331a604fd0d3bdfb2a473c2687f61b to your computer and use it in GitHub Desktop.
Save irvine5k/46331a604fd0d3bdfb2a473c2687f61b to your computer and use it in GitHub Desktop.
Cubit Listener
CubitListener<CounterCubit, int>(
listener: (context, state) {
if(state < 0) {
print('negative int');
}
},
child: const SizedBox(),
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment