of static method
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;
}