FlutterSchematicExtensionHost constructor

const FlutterSchematicExtensionHost({
  1. required bool isWebview,
  2. required bool requestReload(),
  3. required void listenForMessages({
    1. void onError(
      1. String error
      )?,
    2. void onIncomingSignals(
      1. List<String> signalPaths
      )?,
    3. required void onReload(
      1. String jsonData
      ),
    4. void onSignalViewerAvailability({
      1. required bool canSendSignals,
      })?,
    }),
  4. void listenForFileReloads(
    1. void onReload()
    ) = listenForIndexedFileReload,
  5. bool notifySignalViewerReady() = postSignalViewerReady,
  6. bool sendSignals({
    1. 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,
});