FFPostgresField constructor

FFPostgresField({
  1. FFIdentifier? identifier,
  2. FFParameter? type,
  3. bool? isPrimaryKey,
  4. bool? hasDefault,
  5. bool? isRequired,
  6. String? description,
  7. String? postgresType,
  8. String? foreignKey,
})

Implementation

factory FFPostgresField({
  FFIdentifier? identifier,
  FFParameter? type,
  $core.bool? isPrimaryKey,
  $core.bool? hasDefault,
  $core.bool? isRequired,
  $core.String? description,
  $core.String? postgresType,
  $core.String? foreignKey,
}) {
  final result = create();
  if (identifier != null) result.identifier = identifier;
  if (type != null) result.type = type;
  if (isPrimaryKey != null) result.isPrimaryKey = isPrimaryKey;
  if (hasDefault != null) result.hasDefault = hasDefault;
  if (isRequired != null) result.isRequired = isRequired;
  if (description != null) result.description = description;
  if (postgresType != null) result.postgresType = postgresType;
  if (foreignKey != null) result.foreignKey = foreignKey;
  return result;
}