validateSchema method
Validates runtime schema invariants that cannot rely on debug-only asserts.
Field definitions keep const constructors for ergonomic schema
declarations, so the dataset calls this during schema indexing to enforce
public field metadata rules in debug and release builds.
Implementation
@override
void validateSchema() {
super.validateSchema();
if (scale < 0 || scale > 7) {
throw ArgumentError.value(
scale,
'scale',
'FdcTimeField "$name" scale must be in range 0..7.',
);
}
}