toolbarLocation property
- @Deprecated('Use the `contextMenuBuilder` parameter in `showToolbar` instead. ' 'This feature was deprecated after v3.3.0-0.5.pre.')
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;
Implementation
set toolbarLocation(Offset? value) {
if (_toolbarLocation == value) {
return;
}
_toolbarLocation = value;
markNeedsBuild();
}