themeOf method

ChoiceChipFieldTheme themeOf(
  1. BuildContext context
)

Implementation

ChoiceChipFieldTheme themeOf(BuildContext context) {
  final formTheme = FormTheme.of(context);
  final fieldTheme = formTheme.choiceChipTheme;
  final wrapTheme = fieldTheme.wrapTheme;

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