primaryVariant property Null safety

Color primaryVariant
@Deprecated('Use primary or primaryContainer instead. ' 'This feature was deprecated after v2.6.0-0.0.pre.')

A darker version of the primary color.

Implementation

@Deprecated(
  'Use primary or primaryContainer instead. '
  'This feature was deprecated after v2.6.0-0.0.pre.'
)
Color get primaryVariant => _primaryVariant ?? primary;