getDarkColor static method

Color? getDarkColor(
  1. BuildContext context,
  2. Color darkColor
)

Implementation

static Color? getDarkColor(BuildContext context, Color darkColor) {
  return isDark(context) ? darkColor : null;
}