themeOf static method

ArcaneTheme themeOf(
  1. BuildContext context
)

Get theme from context or fall back to global

Implementation

static ArcaneTheme themeOf(BuildContext context) {
  return ArcaneTheme.maybeOf(context) ?? globalTheme;
}