dartify method
Converts a JavaScript value to the Dart equivalent if possible.
Effectively the inverse of NullableObjectUtilExtension.jsify, dartify
takes a JavaScript value and recursively converts it to a Dart object.
Only JavaScript primitives, Array
s, typed arrays, and map-like objects
with string property names are supported.
Note
Prefer using the specific conversion method like toDart
if you know
the JavaScript type as this method may perform many type-checks.
Implementation
// TODO(srujzs): We likely need stronger tests for this method to ensure
// consistency.
external Object? dartify();