FdcDecimalField class

Decimal field metadata.

precision and scale are required because decimal capacity is part of the dataset schema, not a grid/editor formatting preference.

Inheritance

Constructors

FdcDecimalField({required String name, String? label, bool required = false, bool isKey = false, required int precision, required int scale, Object? defaultValue, num? minValue, num? maxValue, FdcCalculatedFieldValue? calculatedValue, bool? persistent, FdcFieldValidator? validator, FdcFieldStorage storage = const FdcFieldStorage()})
Creates a FdcDecimalField.
const

Properties

calculatedValue FdcCalculatedFieldValue?
Optional expression used to derive this field from the current row.
finalinherited
dataType FdcDataType
Logical data type used for normalization, validation, filtering, and editors.
finalinherited
defaultValue Object?
Static default value or a zero-argument default factory.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
isCalculated bool
True when the field value is derived by calculatedValue.
no setterinherited
isKey bool
Whether this field participates in the dataset record identity.
finalinherited
isPersistent bool
True when the field participates in persistence-oriented dataset output.
no setterinherited
isReadOnly bool
True when normal dataset editing must not write this field.
no setterinherited
label String?
Display label shown to the user.
finalinherited
maxValue num?
The max value.
final
minValue num?
The min value.
final
name String
Original field name casing used for export/display metadata.
finalinherited
persistent bool?
Controls whether the field participates in persistence-oriented outputs such as FdcDataSet.changeSet and FdcDataSet.toMaps.
finalinherited
precision int
The precision.
final
required bool
Whether null or empty values are rejected by built-in validation.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scale int
The scale.
final
storage FdcFieldStorage
Persistence/storage metadata consumed by adapters.
finalinherited
validator FdcFieldValidator?
Optional field-level validator executed after built-in validation.
finalinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
validateSchema() → void
Validates runtime schema invariants that cannot rely on debug-only asserts.
override

Operators

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