isPrimitive static method
Implementation
static bool isPrimitive(dynamic val) {
bool rtn = val == null;
if (!rtn) {
rtn = val is String || val is num || val is bool; //add more
}
return rtn;
}
static bool isPrimitive(dynamic val) {
bool rtn = val == null;
if (!rtn) {
rtn = val is String || val is num || val is bool; //add more
}
return rtn;
}