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


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


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

Answered By – Hrvoje ÄŒukman

Answer Checked By – Pedro (FlutterFixes Volunteer)

Leave a Reply

Your email address will not be published. Required fields are marked *