wrapWithToolTip function

Widget wrapWithToolTip({
  1. String? toolTip,
  2. required Widget child,
})

Implementation

Widget wrapWithToolTip({
  String? toolTip,
  required Widget child,
}) {
  return toolTip == null
      ? child
      : Tooltip(
          message: toolTip,
          waitDuration: const Duration(seconds: 1),
          child: child,
        );
}