currentTheme static method

NeumorphicThemeData currentTheme(
  1. BuildContext context
)

Implementation

static NeumorphicThemeData currentTheme(BuildContext context) {
  final provider = NeumorphicTheme.of(context);
  if (provider == null) return neumorphicDefaultTheme;
  return provider.current == null
      ? neumorphicDefaultTheme
      : provider.current!;
}