LemonEngine constructor

LemonEngine({
  1. String title = Default_Title,
  2. WidgetBuilder? buildLoadingScreen,
  3. ThemeData? themeData,
  4. Color backgroundColor = Default_Background_Color,
  5. 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;
  }
}