buildActions method
Optional actions to show in the console toolbar
Implementation
@override
List<Widget> buildActions(BuildContext context) {
return [
IconButton(
icon: const Icon(Icons.share),
tooltip: 'Export',
onPressed: () => _export(context),
),
IconButton(
icon: const Icon(Icons.delete),
tooltip: 'Clear',
onPressed: () => _clear(context),
),
];
}