defaultValue property

Object? defaultValue
final

Static default value or a zero-argument default factory.

Static defaults are reused as-is. A FdcFieldDefaultValueFactory, for example FdcGuid.newGuid, is evaluated each time a new inserted/appended record is materialized. Defaults are not applied when loading existing rows.

GUID fields intentionally reject static non-null defaults during new-record materialization. Use defaultValue: FdcGuid.newGuid for primary/foreign-key style defaults that must be unique per inserted/appended record.

Implementation

final Object? defaultValue;