runApp function
void
runApp({
- required FeaturesBuilder features,
- PluginDescriptor? plugins,
- PlatformWidgetBuilder? platformWidgetBuilder,
- String? initialLocation,
The main entry point to kick off the Vyuh Application. This function should be called from the main function of the application. It initializes the Vyuh Platform and runs the application with given features and plugins.
Implementation
void runApp({
required FeaturesBuilder features,
PluginDescriptor? plugins,
PlatformWidgetBuilder? platformWidgetBuilder,
String? initialLocation,
}) async {
WidgetsFlutterBinding.ensureInitialized();
final widgetBuilder = platformWidgetBuilder ?? defaultPlatformWidgetBuilder;
vyuh = _DefaultVyuhPlatform(
featuresBuilder: features,
pluginDescriptor: plugins ?? PluginDescriptor.defaultPlugins,
widgetBuilder: widgetBuilder,
initialLocation: initialLocation,
);
vyuh.run();
}