buildActions method

  1. @override
List<Widget> buildActions(
  1. BuildContext context
)
override

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),
    ),
  ];
}