of static method
- BuildContext context
Returns the nearest FeedbackThemeData from the widget tree, or a default FeedbackThemeData instance when no ancestor is found.
Implementation
static FeedbackThemeData of(BuildContext context) {
final theme =
context.dependOnInheritedWidgetOfExactType<FeedbackTheme>();
return theme?.data ?? const FeedbackThemeData();
}