DateField_WithDefault constructor

DateField_WithDefault(
  1. GenericDataFields owner,
  2. String fieldName,
  3. bool notNullable,
  4. bool isPrimaryKey,
  5. DateTime defaultValue,
)

Implementation

DateField_WithDefault(GenericDataFields owner, String fieldName,
    bool notNullable, bool isPrimaryKey, DateTime defaultValue)
    : super(owner, fieldName, notNullable, isPrimaryKey) {
  _defaultValue =
      DateTime(defaultValue.year, defaultValue.month, defaultValue.day);
  _hasDefault = true;
  _value = _defaultValue;
  _assigned = true;
}