colorStubDark top-level constant

String const colorStubDark

Implementation

const String colorStubDark = """
T get onDarkFrom%colorNameCamel% {
    if (_brightness == Brightness.dark) {
      _needsDarkVariant = true;
      gradientColors[0] = TwColors.%colorName%;
    }
    return _child;
}
T get onDarkTo%colorNameCamel% {
    if (_brightness == Brightness.dark) {
      _needsDarkVariant = true;
      gradientColors[1] = TwColors.%colorName%;
    }
    return _child;
}
""";