ToolbarItem constructor

const ToolbarItem({
  1. required Key? key,
})

An individual action displayed within a Toolbar. Sub-class this to build a new type of widget that appears inside of a toolbar. It knows how to build an appropriate widget for the given ToolbarItemDisplayMode during build time.

Implementation

const ToolbarItem({required this.key});