of static method

The data from the closest MultiSplitViewTheme instance that encloses the given context.

Implementation

static MultiSplitViewThemeData of(BuildContext context) {
  final _InheritedTheme? inheritedTheme =
      context.dependOnInheritedWidgetOfExactType<_InheritedTheme>();
  final MultiSplitViewThemeData data =
      inheritedTheme?.theme.data ?? _defaultTheme;
  return data;
}