of static method

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

Defaults to FluentThemeData.buttonTheme

Typical usage is as follows:

ButtonThemeData theme = ButtonTheme.of(context);

Implementation

static ButtonThemeData of(BuildContext context) {
  assert(debugCheckHasFluentTheme(context));
  return FluentTheme.of(context).buttonTheme.merge(
        _getInheritedButtonThemeData(context),
      );
}