of static method

Returns the data from the closest TooltipTheme ancestor. If there is no ancestor, it returns FluentThemeData.tooltipTheme. Applications can assume that the returned value will not be null.

Typical usage is as follows:

TooltipThemeData theme = TooltipTheme.of(context);

Implementation

static TooltipThemeData of(BuildContext context) {
  return TooltipThemeData.standard(FluentTheme.of(context)).merge(
    _getInheritedThemeData(context),
  );
}