CustomTheme.of constructor

CustomTheme.of(
  1. BuildContext context
)

Implementation

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