LemonEngine constructor
LemonEngine({
- String title = Default_Title,
- WidgetBuilder? buildLoadingScreen,
- ThemeData? themeData,
- Color backgroundColor = Default_Background_Color,
- Duration durationPerUpdate = Default_Duration_Per_Update,
Implementation
LemonEngine({
String title = Default_Title,
WidgetBuilder? buildLoadingScreen,
ThemeData? themeData,
Color backgroundColor = Default_Background_Color,
Duration durationPerUpdate = Default_Duration_Per_Update,
}){
this.watchMouseLeftDown.onChanged(_internalOnChangedMouseLeftDown);
this.durationPerUpdate.onChanged(onChangedDurationPerUpdate);
this.watchTitle.value = title;
this.themeData.value = themeData;
this.backgroundColor = backgroundColor;
this.onError = onError;
this.durationPerUpdate.value = durationPerUpdate;
if (buildLoadingScreen != null){
this.loadingScreenBuilder = buildLoadingScreen;
}
}