key property

String get key

Identifies the variant across the document.

Implementation

String get key => props.isEmpty ? component : '$component[$variantName]';