typeName function

String typeName(
  1. Object? v
)

null, array, or the JavaScript typeof of v (the SDK's typeOf).

Implementation

String typeName(Object? v) {
  if (v == null) return 'null';
  if (v is List) return 'array';
  return jsTypeOf(v);
}