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