of static method

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

Implementation

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