CvField<T extends Object?> class abstract

Basic CvField

Implemented types
Implementers
Available extensions

Constructors

CvField.new(String name, [T? value])
Only set value if not null
factory
CvField.withNull(String name)
Force a null value
factory
CvField.withValue(String name, T? value)
Force a value even if null
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
hasValue bool
True if a value is set (even if the value is null)
no setterinherited
isBasicType bool

Available on CvField<T>, provided by the CvFieldUtilsExt extension

Check if the field is a basic type (num, String, bool, int, double)
no setter
isNotNull bool
Return true if set and not null
no setterinherited
isNull bool
Return true is null or unset
no setterinherited
k String
The key (abbr.)
no setterinherited
key String
The key
no setterinherited
name String
Column name.
no setterinherited
pathParts Iterable<Object>

Available on CvField<Object?>, provided by the CvTreePathFieldExt extension

Field path paths
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
treePath CvTreePath

Available on CvField<Object?>, provided by the CvTreePathFieldExt extension

Path final computation.
no setter
type Type
Column type.
no setterinherited
v ↔ T?
The value (abbr.)
getter/setter pairinherited
value ↔ T?
The value
getter/setter pairinherited
valueOrNull ↔ T?
The value or null if null or not set
getter/setter pairinherited
valueOrThrow ↔ T
The value if available (nor null, nor not set).
getter/setter pairinherited

Methods

cast<RT>() CvField<RT>
Cast if needed
inherited
clear() → void
Clear value and flag
inherited
fillField([CvFillOptions? options]) → void

Available on CvField<T>, provided by the CvFieldUtilsExt extension

For test
fromBasicTypeValue(Object? value, {bool presentIfNull = false}) → void

Available on CvField<T>, provided by the CvFieldUtilsExt extension

Only for String/bool/num/int/double
fromCvField(CvField<Object?> cvField) → void
Allow dynamic CvFields, copy if the value if set, otherwise delete it
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setNull() → void
Force the null value.
inherited
setValue(T? value, {bool presentIfNull = false}) → void
presentIfNull true if null is marked as a value
inherited
toString() String
A string representation of this object.
inherited
withName(String name) CvField<T>

Available on CvField<T>, provided by the CvFieldUtilsExt extension

Create a new field with a new name
withParent(String parent) CvField<T>
Make the field an inner field, the parent being a map
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

encoded<S extends Object?, T extends Object?>(String name, {required Codec<S, T>? codec}) CvField<S>
Encode a S source exposed value to an encoded T saved value