of static method

Returns the data from the closest NavigationPaneTheme ancestor. If there is no ancestor, it returns FluentThemeData.navigationPaneTheme. Applications can assume that the returned value will not be null.

Typical usage is as follows:

NavigationPaneThemeData theme = NavigationPaneTheme.of(context);

Implementation

static NavigationPaneThemeData of(BuildContext context) {
  return FluentTheme.of(context).navigationPaneTheme.merge(
        _getInheritedThemeData(context),
      );
}