main function Null safety

void main()

Main entry point

Implementation

void main() async {
  WidgetsFlutterBinding.ensureInitialized();
  await EasyLocalization.ensureInitialized();
  await AppDatabase.build();
  await Firebase.initializeApp();
  await Core.init();

  runApp(
      Phoenix(
        child: EasyLocalization(
          supportedLocales: languages.map((lang) => lang.locale).toList(),
          path: 'translations',
          fallbackLocale: getDefaultLanguage().locale,
          child: App()
        )
      ),
  );
}