defaultColor static method

JsonColorScheme defaultColor(
  1. BuildContext context
)

default color scheme

Implementation

static JsonColorScheme defaultColor(BuildContext context) {
  Brightness brightness = Theme.of(context).brightness;
  if (brightness == Brightness.dark) {
    return defaultDarkColorScheme;
  } else {
    return defaultLightColorScheme;
  }
}