of static method
从最近的 TxRadioTheme 祖先返回配置 data。
如果没有祖先,则返回 ThemeData.extension<TxRadioThemeData>(); 如果它也为null,则返回默认TxRadioThemeData
Implementation
static TxRadioThemeData of(BuildContext context) {
final TxRadioTheme? radioTheme =
context.dependOnInheritedWidgetOfExactType<TxRadioTheme>();
return radioTheme?.data ??
Theme.of(context).extension<TxRadioThemeData>() ??
const TxRadioThemeData();
}