FlutterSchematicExtensionHost constructor
const
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,
})?,
}),
- void listenForFileReloads(
- void onReload()
) = listenForIndexedFileReload,
- bool notifySignalViewerReady() = postSignalViewerReady,
- bool sendSignals({
- required List<String> signalPaths,
}) = postSendSignals,
})
Creates a VS Code webview host boundary.
Implementation
const FlutterSchematicExtensionHost({
required this.isWebview,
required this.requestReload,
required this.listenForMessages,
this.listenForFileReloads = listenForIndexedFileReload,
this.notifySignalViewerReady = postSignalViewerReady,
this.sendSignals = postSendSignals,
});