toolbarLocation property

  1. @Deprecated('Use the `contextMenuBuilder` parameter in `showToolbar` instead. ' 'This feature was deprecated after v3.3.0-0.5.pre.')
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

@Deprecated(
  'Use the `contextMenuBuilder` parameter in `showToolbar` instead. '
  'This feature was deprecated after v3.3.0-0.5.pre.',
)
Offset? get toolbarLocation => _toolbarLocation;
void toolbarLocation=(Offset? value)

Implementation

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