tryAsTuple method

List<CType>? tryAsTuple()

Implementation

List<CType>? tryAsTuple() {
  final res = <CType>[];
  for (var i = 0; i < _fields.length; i++) {
    var key = _fields[i].key;
    var type = _fields[i].value;

    if (key != "_${i}_") {
      return null;
    }
    res.add(type);
  }
  return res;
}