withDefaults static method

ExpandableThemeData withDefaults(
  1. ExpandableThemeData? theme,
  2. BuildContext context, {
  3. bool rebuildOnChange = true,
})

Implementation

static ExpandableThemeData withDefaults(
    ExpandableThemeData? theme, BuildContext context,
    {bool rebuildOnChange = true}) {
  if (theme != null && theme.isFull()) {
    return theme;
  } else {
    return combine(
        combine(theme, of(context, rebuildOnChange: rebuildOnChange)),
        defaults);
  }
}