FlutterSchematicExtensionHost class
VS Code webview operations used by FlutterSchematicViewerPage.
The default implementation delegates to browser interop. Specialized hosts and widget tests can provide the same lifecycle without browser globals.
Constructors
-
FlutterSchematicExtensionHost({required bool isWebview, required bool requestReload(), required void listenForMessages({void onError(String error)?, void onIncomingSignals(List<
String> signalPaths)?, required void onReload(String jsonData), void onSignalViewerAvailability({required bool canSendSignals})?}), bool notifySignalViewerReady() = postSignalViewerReady, bool sendSignals({required List<String> signalPaths}) = postSendSignals}) -
Creates a VS Code webview host boundary.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isWebview → bool
-
Whether the page is hosted in a VS Code webview.
final
-
listenForMessages
→ void Function({void onError(String error)?, void onIncomingSignals(List<
String> signalPaths)?, required void onReload(String jsonData), void onSignalViewerAvailability({required bool canSendSignals})?}) -
Registers callbacks for extension-pushed webview messages.
final
- notifySignalViewerReady → bool Function()
-
Announces that this webview can participate in signal cross-probing.
final
- requestReload → bool Function()
-
Requests that the extension reload the schematic from disk.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
sendSignals
→ bool Function({required List<
String> signalPaths}) -
Sends selected signal paths through the VS Code signal-viewer bus.
final
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