hide property

void Function(Diagram, Tool)? get hide

Gets or sets the function to call when an HTMLInfo is to be hidden. The function should "hide" the HTMLInfo, either by removing any traces of it or otherwise returning the page state to one where the HTMLInfo content is no longer considered active.

Setting this is not strictly necessary, if no action is to be taken when hiding the HTMLInfo.

If this is called by:

  • ContextMenuTool#hideContextMenu, the second argument is the ContextMenuTool.
  • ToolManager#hideToolTip, the second argument is the ToolManager.
  • TextEditingTool#doDeactivate, the second argument is the TextEditingTool.

Implementation

void Function(
  _i3.Diagram,
  _i3.Tool,
)? get hide => (
      _i3.Diagram p0,
      _i3.Tool p1,
    ) =>
        _i4.callMethod(
          _i4.getProperty(
            this,
            'hide',
          ),
          r'call',
          [
            this,
            p0,
            p1,
          ],
        );
set hide (void value(Diagram, Tool)?)

Implementation

set hide(
    void Function(
      _i3.Diagram,
      _i3.Tool,
    )? value) {
  _i4.setProperty(
    this,
    'hide',
    value == null ? _i5.undefined : _i4.allowInterop(value),
  );
}