currentTheme static method

NeumorphismThemeData currentTheme(
  1. BuildContext context
)

Implementation

static NeumorphismThemeData currentTheme(BuildContext context) {
  final provider = NeumorphismTheme.of(context);
  if (provider == null) return neumorphismDefaultTheme;
  return provider.current == null
      ? neumorphismDefaultTheme
      : provider.current!;
}