setPanelBehavior method
Configures the extension's side panel behavior. This is an upsert operation. |behavior|: The new behavior to be set. |callback|: Called when the new behavior has been set.
Implementation
Future<void> setPanelBehavior(PanelBehavior behavior) async {
await promiseToFuture<void>(
$js.chrome.sidePanel.setPanelBehavior(behavior.toJS));
}