CustomTheme.of constructor
CustomTheme.of(
- BuildContext context
Implementation
factory CustomTheme.of(BuildContext context) {
return Theme.of(context).extension<CustomTheme>() ?? const CustomTheme();
}