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