onBackground property
- @Deprecated('Use onSurface instead. ' 'This feature was deprecated after v3.18.0-0.1.pre.')
A color that's clearly legible when drawn on background.
To ensure that an app is accessible, a contrast ratio between background and onBackground of at least 4.5:1 is recommended. See www.w3.org/TR/UNDERSTANDING-WCAG20/visual-audio-contrast-contrast.html.
Implementation
@Deprecated(
'Use onSurface instead. '
'This feature was deprecated after v3.18.0-0.1.pre.'
)
Color get onBackground => _onBackground ?? onSurface;