bold top-level property

ToolbarItem bold
final

Toolbar item that toggles the boldAttribute on the selected text.

Implementation

final bold = createToggleableToolbarItem(
  'Bold',
  boldAttribute,
  Icons.format_bold_rounded,
);