of static method
- BuildContext context
Retrieves the OutlinedButtonThemeData from the closest ancestor OutlinedButtonTheme.
If there is no enclosing OutlinedButtonTheme widget, then ThemeData.outlinedButtonTheme is used.
Typical usage is as follows:
OutlinedButtonThemeData theme = OutlinedButtonTheme.of(context);
Implementation
static OutlinedButtonThemeData of(BuildContext context) {
final OutlinedButtonTheme? buttonTheme = context
.dependOnInheritedWidgetOfExactType<OutlinedButtonTheme>();
return buttonTheme?.data ?? Theme.of(context).outlinedButtonTheme;
}