getPropertyNames method

List<String> getPropertyNames (dynamic obj)

Gets names of all properties implemented in specified object.

The object can be a user defined object, map or array. Returned property name correspondently are object properties, map keys or array indexes.

  • obj an objec to introspect. Returns a list with property names.