setBrightness static method

void setBrightness(
  1. BuildContext context
)

Implementation

static void setBrightness(BuildContext context) {
  _sunnyText ??= SunnyTextTheme.defaults;
  _sunnyText = _sunnyText!.applyEach((style) {
    final resolved = style.color?.resolveFrom(context);
    return style.copyWith(color: resolved);
  });
}