themeOf method

FilterChipFieldTheme themeOf(
  1. BuildContext context
)

Implementation

FilterChipFieldTheme themeOf(BuildContext context) {
  final formTheme = FormTheme.of(context);
  final fieldTheme = formTheme.filterChipTheme;
  final wrapTheme = fieldTheme.wrapTheme;

  return FilterChipFieldTheme(
    chipTheme: fieldTheme.chipTheme,
    wrapTheme: WrapChipFieldTheme(
      spacing: wrapTheme.spacing ?? 8.0,
      runSpacing: wrapTheme.runSpacing ?? 8.0,
    ),
  );
}