Arcane constructor

Arcane({
  1. double opalBackgroundOpacity = 0.15,
  2. double opalCanvasOpacity = 0.95,
  3. double opalColorSpin = 0.15,
  4. int opalLights = 3,
  5. required String title,
  6. bool exitWindowOnClose = true,
  7. required ArcaneRouter router,
  8. required FirebaseOptions firebase,
  9. required Widget application(),
  10. required ArcaneUserProvider users,
  11. WindowOptions windowOptions = const WindowOptions(size: Size(800, 600), center: true, backgroundColor: Colors.transparent, titleBarStyle: TitleBarStyle.hidden),
  12. ArcaneEvents? events,
  13. String? windowsGoogleSignInClientId,
  14. String? windowsGoogleSignInRedirectUri,
  15. ThemeData? initialLightTheme,
  16. ThemeData? initialDarkTheme,
  17. List<ThemeMod> themeMods = const [],
  18. List<ThemeMod> darkThemeMods = const [],
  19. List<ThemeMod> lightThemeMods = const [],
})

Implementation

Arcane({
  this.opalBackgroundOpacity = 0.15,
  this.opalCanvasOpacity = 0.95,
  this.opalColorSpin = 0.15,
  this.opalLights = 3,
  required this.title,
  this.exitWindowOnClose = true,
  required this.router,
  required this.firebase,
  required this.application,
  required this.users,
  this.windowOptions = const WindowOptions(
    size: Size(800, 600),
    center: true,
    backgroundColor: Colors.transparent,
    titleBarStyle: TitleBarStyle.hidden,
  ),
  this.svgLogo = svgArcaneArts,
  this.events,
  this.windowsGoogleSignInClientId,
  this.windowsGoogleSignInRedirectUri,
  this.initialLightTheme,
  this.initialDarkTheme,
  this.themeMods = const [],
  this.darkThemeMods = const [],
  this.lightThemeMods = const [],
}) {
  FlutterError.onError = (details) {
    error("Caught Flutter Error: ${details.exception}");
    error(details.stack);
  };
  runZonedGuarded(() async {
    _app = this;
    await _start();
  }, (e, es) {
    error("Caught Zone Error: $e");
    error(es);
  });
}