VariantClass constructor

VariantClass(
  1. Map<String, CType> fields
)

Implementation

VariantClass(Map<String, CType> fields) {
  _fields = fields.entries.toList();
  _fields.sort(
    (a, b) => idlLabelToId(a.key).toInt() - idlLabelToId(b.key).toInt(),
  );
}