process method

  1. @override
Field process()
override

Implementation

@override
Field process() {
  final name = _fieldElement.name;
  final columnName = _getColumnName(name);
  final isNullable = _fieldElement.type.isNullable;
  final typeConverter = {
    ..._fieldElement.getTypeConverters(TypeConverterScope.field),
    _typeConverter
  }.whereNotNull().closestOrNull;

  return Field(
    _fieldElement,
    name,
    columnName,
    isNullable,
    _getSqlType(typeConverter),
    typeConverter,
  );
}