maybeTooltip static method
Conditionally wraps the child
with Tooltip widget if message
is not null and not empty.
Implementation
static Widget maybeTooltip({
required Widget child,
String? message,
}) =>
(message?.isNotEmpty ?? false)
? Tooltip(message: message, child: child)
: child;