buildToolBarWidget method
Build widget for the toolbar
Implementation
@override
Widget buildToolBarWidget(BuildContext context) {
final iconButton = IconButton(
icon: icon ?? Icon(iconData),
onPressed:
enabled && onPressed != null ? () => onPressed!(context) : null,
);
return Semantics(
label: semanticLabel ?? tooltip,
excludeSemantics: true,
blockUserActions: true,
child: tooltip != null
? Tooltip(
message: tooltip,
waitDuration: const Duration(seconds: 1),
child: iconButton,
)
: iconButton,
);
}