DataExtractor class

Extracts fields from any object for the report designer

Constructors

DataExtractor()

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

extractFields(dynamic object, {String prefix = ''}) → List<FieldInfo>
Extracts all available fields from an object Supports: Map, objects with toJson(), plain objects
formatValue(dynamic value, {String? format}) → String
Formats the value for display
getFieldNames(dynamic object) → List<String>
Lists the fields as plain strings (for dropdowns)
getFieldTypes(dynamic object) → Map<String, Type>
Maps field name -> type (for validation)
getValue(dynamic object, String fieldPath) → dynamic
Reads a field value from an object by path (e.g. "product.name")