of static method

ChipThemeData of(
  1. BuildContext context
)

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

Defaults to ThemeData.chipTheme

Typical usage is as follows:

ChipThemeData theme = ChipTheme.of(context);

Implementation

static ChipThemeData of(BuildContext context) {
  assert(debugCheckHasFluentTheme(context));
  return ChipThemeData.standard(FluentTheme.of(context)).merge(
    _getInheritedChipThemeData(context),
  );
}