run static method

void run(
  1. Widget application
)

Initializes the iEngine environment and launches the given application.

This should be called at the very start of main().

Implementation

static void run(Widget application) async {
  WidgetsFlutterBinding.ensureInitialized(); // Required for async initialization
  await Prefs.instance(); // Setup shared preferences
  runApp(application); // Start the app
}