createSidebarPane method

Future<ExtensionSidebarPane> createSidebarPane(
  1. String title
)

Creates a pane within panel's sidebar. title Text that is displayed in sidebar caption. returns A callback invoked when the sidebar is created.

Implementation

Future<ExtensionSidebarPane> createSidebarPane(String title) {
  var $completer = Completer<ExtensionSidebarPane>();
  _wrapped.createSidebarPane(
    title,
    ($js.ExtensionSidebarPane result) {
      if (checkRuntimeLastError($completer)) {
        $completer.complete(ExtensionSidebarPane.fromJS(result));
      }
    }.toJS,
  );
  return $completer.future;
}