main function
void
main()
Implementation
void main() async {
//prevent from crash on start
await runZonedGuarded(
() async {
WidgetsFlutterBinding.ensureInitialized();
//read static data of app
await MyApplicationPreference().read();
//main thread of creating app
runApp(const MyApp());
// runApp( Test());
},
(error, st) => print(error),
);
}