getTwo static method

Color? getTwo({
  1. Brightness? brightness,
  2. Color? color,
  3. BuildContext? context,
  4. bool nullable = false,
  5. bool modifyGlobal = false,
})

Implementation

static Color? getTwo(
    {Brightness? brightness,
    Color? color,
    BuildContext? context,
    bool nullable = false,
    bool modifyGlobal = false}) {
  var _color = getColor(
    brightness: brightness,
    context: context,
    light: textColorTwo,
    dark: white,
    color: color,
    nullable: nullable,
  );
  if (color == null) {
    if (modifyGlobal) {
      cTextColorTwo = _color;
    } else {
      cTextColorTwo ??= _color;
    }
  }
  return _color;
}