of static method

The closest instance of this class that encloses the given context.

If there is no enclosing HelpButtonTheme widget, then MacosThemeData.helpButtonTheme is used.

Typical usage is as follows:

HelpButtonTheme theme = HelpButtonTheme.of(context);

Implementation

static HelpButtonThemeData of(BuildContext context) {
  final HelpButtonTheme? buttonTheme =
      context.dependOnInheritedWidgetOfExactType<HelpButtonTheme>();
  return buttonTheme?.data ?? MacosTheme.of(context).helpButtonTheme;
}