RecursiveObjectReader class
Helper class to perform property introspection and dynamic reading.
It is similar to ObjectReader but reads properties recursively through the entire object graph. Nested property names are defined using dot notation as 'object.subobject.property' See PropertyReflector See ObjectReader
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
getProperties(
dynamic obj) → Map< String, dynamic> - Get values of all properties in specified object and its subobjects and returns them as a map.
-
getProperty(
dynamic obj, String? name) → dynamic - Recursively gets value of object or its subobjects property specified by its name.
-
getPropertyNames(
dynamic obj) → List< String> - Recursively gets names of all properties implemented in specified object and its subobjects.
-
hasProperty(
dynamic obj, String? name) → bool - Checks recursively if object or its subobjects has a property with specified name.