CvField<T extends Object?> class
abstract
Basic CvField
- Implemented types
-
- CvColumn<
T>
- CvColumn<
- Implementers
- Available Extensions
Constructors
- CvField(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
- 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
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- 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
-
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
-
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