isNative static method

bool isNative(
  1. dynamic val
)

Implementation

static bool isNative(dynamic val) {
  bool rtn = isPrimitive(val);
  if (!rtn) {
    rtn = val is Map || val is List || val is RegExp;
  }
  return rtn;
}