themeRoleInColors constant

DiagnosticCode const themeRoleInColors

Implementation

static const themeRoleInColors = DiagnosticCode('theme_role_in_colors', Severity.warning,
    'A color role (primary, onPrimary, surface, onSurface, error, success, warning: Flutter\'s ColorScheme names) written inside the theme\'s "colors": roles are top-level keys of the theme, so controls never read it. Move it up ("primary": "#FF..." or "primary": "<a color\'s name>").');