ToggleStyleButtonBuilder typedef

ToggleStyleButtonBuilder = Widget Function(BuildContext context, NotusAttribute attribute, IconData icon, bool isToggled, VoidCallback? onPressed)

Builder for toolbar buttons handling toggleable style attributes.

See defaultToggleStyleButtonBuilder as a reference implementation.

Implementation

typedef ToggleStyleButtonBuilder = Widget Function(
  BuildContext context,
  NotusAttribute attribute,
  IconData icon,
  bool isToggled,
  VoidCallback? onPressed,
);