getType static method
Implementation
static ClassType getType(dynamic value) {
if (value == null) {
return tNull;
}
if (value is String) {
return tString;
} else if (value is int) {
return tInt;
} else if (value is double) {
return tDouble;
} else if (value is bool) {
return tBool;
} else if (value is List) {
return tListDynamic;
} else {
return tObject;
}
}