display method

  1. @override
String display()
override

Implementation

@override
String display() {
  final fields = _fields.map(
    (entry) =>
        entry.key +
        (entry.value.name == 'null' ? '' : ":${entry.value.display()}"),
  );
  return "variant {${fields.join('; ')}}";
}