code: public void setSize(final double size) {
          this.size = size;
          stack.setPrefSize(size, size);
          text.setFont(Font.font(text.getFont().getFamily(), FontWeight.BOLD, size / 2));
          svgIcon.setSize(size);
          stack.requestLayout();
      }
docs: Method can be used to set the size of this component.
  @param size