of static method

FlipFlapTheme of(
  1. BuildContext context
)

Implementation

static FlipFlapTheme of(final BuildContext context) {
  final fromTheme = Theme.of(context).extension<FlipFlapTheme>();
  if (fromTheme != null) return fromTheme;
  final brightness = Theme.of(context).brightness;
  return brightness == Brightness.dark ? FlipFlapTheme.dark : FlipFlapTheme.light;
}