setProperties method

void setProperties (dynamic obj, Map<String, dynamic> values)

Sets values of some (all) object properties.

If some properties do not exist or introspection fails they are just silently skipped and no errors thrown.

  • obj an object to write properties to.
  • values a map, containing property names and their values.

See [setProperty]