CvField<T extends Object?> class
abstract
Basic CvField
- Implemented types
-
- CvColumn<
T>
- CvColumn<
- 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<
Check if the field is a basic type (num, String, bool, int, double)T> , provided by the CvFieldUtilsExt extensionno 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<
Field path pathsObject?> , provided by the CvTreePathFieldExt extensionno setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- treePath → CvTreePath
-
Available on CvField<
Path final computation.Object?> , provided by the CvTreePathFieldExt extensionno 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<
For testT> , provided by the CvFieldUtilsExt extension -
fromBasicTypeValue(
Object? value, {bool presentIfNull = false}) → void -
Available on CvField<
Only for String/bool/num/int/doubleT> , provided by the CvFieldUtilsExt extension -
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 valueinherited -
toString(
) → String -
A string representation of this object.
inherited
-
withName(
String name) → CvField< T> -
Available on CvField<
Create a new field with a new nameT> , provided by the CvFieldUtilsExt extension -
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