currentTheme static method

EmergentThemeData currentTheme(
  1. BuildContext context
)

Implementation

static EmergentThemeData currentTheme(BuildContext context) {
  final provider = EmergentTheme.of(context);
  if (provider == null) return emergentDefaultTheme;
  return provider.current == null ? emergentDefaultTheme : provider.current!;
}