refreshAction function

Widget refreshAction(
  1. VoidCallback onTap, {
  2. String? tooltip,
})

Implementation

Widget refreshAction(VoidCallback onTap, {String? tooltip}) {
  return IconButton(icon: const Icon(Icons.refresh_rounded), onPressed: onTap, tooltip: tooltip ?? "刷新");
}