showToolbar method

void showToolbar()

Shows the toolbar by inserting it into the context's overlay.

Implementation

void showToolbar() {
  _updateSelectionOverlay();

  if (selectionControls != null && selectionControls is! TextSelectionHandleControls) {
    _selectionOverlay.showToolbar();
    return;
  }

  if (contextMenuBuilder == null) {
    return;
  }

  assert(context.mounted);
  _selectionOverlay.showToolbar(
    context: context,
    contextMenuBuilder: contextMenuBuilder,
  );
  return;
}