tryAsTuple method

List<CType>? tryAsTuple()

Implementation

List<CType>? tryAsTuple() {
  final res = <CType>[];
  for (int i = 0; i < _fields.length; i++) {
    final key = _fields[i].key;
    final type = _fields[i].value;
    if (key != '_${i}_') {
      return null;
    }
    res.add(type);
  }
  return res;
}