colorStubDarkWithShade top-level constant

String const colorStubDarkWithShade

Implementation

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