of static method

ExpandableThemeData of(
  1. BuildContext context, {
  2. bool rebuildOnChange = true,
})

Implementation

static ExpandableThemeData of(BuildContext context,
    {bool rebuildOnChange = true}) {
  final notifier = rebuildOnChange
      ? context.dependOnInheritedWidgetOfExactType<_ExpandableThemeNotifier>()
      : context.findAncestorWidgetOfExactType<_ExpandableThemeNotifier>();
  return notifier?.themeData ?? defaults;
}