toolbarLocation property Null safety

Offset? toolbarLocation

The location of where the toolbar should be drawn in relative to the location of toolbarLayerLink.

If this is null, the toolbar is drawn based on selectionEndpoints and the rect of render object of context.

This is useful for displaying toolbars at the mouse right-click locations in desktop devices.

Implementation

Offset? get toolbarLocation => _toolbarLocation;
void toolbarLocation=(Offset? value)

Implementation

set toolbarLocation(Offset? value) {
  if (_toolbarLocation == value) {
    return;
  }
  _toolbarLocation = value;
  _markNeedsBuild();
}