getInferredType function

ListType? getInferredType(
  1. dynamic d
)

Implementation

ListType? getInferredType(dynamic d) {
  if (d.runtimeType == int) {
    return ListType.Int;
  } else if (d.runtimeType == double) {
    return ListType.Double;
  } else if (d.runtimeType == String) {
    return ListType.String;
  } else if (d is Map) {
    return ListType.Object;
  }
  return null;
}