registerPanel method

int registerPanel(
  1. ShadPanelInfo info
)

This method adds a new panel to the controller and returns its index.

Implementation

int registerPanel(ShadPanelInfo info) {
  panelsInfo.add(info);
  defaultSizes.add(info.defaultSize);
  return panelsInfo.length - 1;
}