list static method

Tuple2<String?, String?> list(
  1. SerField ser, [
  2. bool nullable = false
])

Implementation

static Tuple2<String?, String?> list(
  SerField ser, [
  bool nullable = false,
]) {
  var s = ser.ser;
  if (s != null) {
    s = "$ph${nullable ? '?' : ''}.map((e) { return ${s.replaceAll(ph, "e")}; }).toList(growable: false)";
  }
  var d = ser.deser;
  if (d != null) {
    d = "$ph${nullable ? '?' : ''}.map<${ser.type.nullable(ser.nullable)}>((e) { return ${d.replaceAll(ph, "e")}; }).toList(growable: false)";
  }
  return Tuple2(s, d);
}