main function
The main entry point of the application.
This initializes Firebase before running the app.
Implementation
Future<void> main() async {
WidgetsFlutterBinding.ensureInitialized();
// Initializes Firebase. Make sure the correct configuration files (google-services.json, GoogleService-Info.plist)
// are in place for Android and iOS.
await Firebase.initializeApp();
runApp(const MyApp());
}