InfospectDesktopBootstrap class

Desktop Multiview bootstrap for hosts that may gate Infospect behind a flag.

When Multiview native runners are installed, Dart must call runMultiApp even if Infospect logging / Infospect.ensureInitialized is skipped. Plain runApp on desktop leaves windows hidden and quit cancelled.

Prefer Infospect.run when the inspector is enabled. When Infospect is off but Multiview runners remain, call runAppOrMultiApp (or Infospect.bootstrapMultiViewApp).

See package DESKTOP_COMPATIBILITY.md.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

isDesktopMultiViewRequired({bool? isWeb, bool? desktopOs}) bool
Whether desktop entry must use Multiview (runMultiApp) instead of runApp. Injectable isWeb / desktopOs support unit tests.
runAppOrMultiApp(Widget app, {MultiAppConfig? config, bool? isWeb, bool? desktopOs}) → void
Boots app with runMultiApp on desktop Multiview hosts, runApp elsewhere. Does not require Infospect to be initialized.