of static method
Returns the data from the closest DividerTheme ancestor. If there is no ancestor, it returns FluentThemeData.dividerTheme. Applications can assume that the returned value will not be null.
Typical usage is as follows:
DividerThemeData theme = DividerTheme.of(context);
Implementation
static DividerThemeData of(BuildContext context) {
return DividerThemeData.standard(FluentTheme.of(context)).merge(
_getInheritedThemeData(context),
);
}