theme property
TWidgetThemeExtension
get
theme
Implementation
TWidgetThemeExtension get theme {
final ext = Theme.of(this).extension<TWidgetThemeExtension>();
if (ext == null) {
throw FlutterError(
'TWidgetThemeExtension is not found in ThemeData. '
'Ensure you have added it to your ThemeData.extensions list.',
);
}
return ext;
}