Home > Mobile >  When to use .add() and when to use emit() in Flutter Bloc?
When to use .add() and when to use emit() in Flutter Bloc?

Time:01-10

I am new to Bloc in flutter, any one can please explain when should I use add() and when to use emit in Blocs?

CodePudding user response:

You should always use emit, flutter bloc was upgrade to extends Cubit class and Cubit uses emit. Add was old usage.

  •  Tags:  
  • Related