close method
Closes the extension's side panel. This is a no-op if the panel is already closed. |options|: Specifies the context in which to close the side panel. |callback|: Returns a Promise which resolves when the side panel has been closed.
Implementation
Future<void> close(CloseOptions options) async {
await $js.chrome.sidePanel.close(options.toJS).toDart;
}