DataBean<T extends DataObject> class
final
Contains all "static" properties of a DataObject.
Constructors
Properties
-
fields
→ List<
DataField< T, dynamic> > -
final
-
fromJson
→ Decoder<
T> -
final
-
fromValues
→ T Function(Map<
String, dynamic> ) -
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
idField
→ DataField<
T, dynamic> ? -
no setter
-
meta
→ List<
MetaData> -
final
- name → String
-
final
-
requireIdField
→ DataField<
T, dynamic> -
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
type
→ TypeCheck<
T> -
no setter
Methods
-
allMetaOfType<
M extends MetaData> ([bool test(M)?]) → Iterable< M> -
checkConstraints(
T object) → Map< DataField, List< DataFieldConstraint> > -
diff(
T from, T to) → Map< DataField< T, dynamic> , dynamic> - Compares DataObjects by field value and returns the difference.
-
hasMetaOfType<
M extends MetaData> ([bool test(M)?]) → bool -
metaOfType<
M extends MetaData> ([bool test(M)?]) → M? -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
validateConstraints(
T object) → void - Checks constraints (using checkConstraints) and throws a ValidationException containing all violated constraints.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited