What Does WidgetsFlutterBinding.ensureInitialized()

PHOTO EMBED

Fri Jan 28 2022 16:49:28 GMT+0000 (UTC)

Saved by @likhene #dart #flutter

void main() async {
  WidgetsFlutterBinding.ensureInitialized();
  await Firebase.initializeApp();
  runApp(MyApp());
}
content_copyCOPY

https://stackoverflow.com/questions/63873338/what-does-widgetsflutterbinding-ensureinitialized-do