withDefaults static method

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

Implementation

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