Field constructor

const Field({
  1. required FieldKind kind,
  2. required String name,
  3. required bool isRequired,
  4. required bool isList,
  5. required bool isUnique,
  6. required bool isId,
  7. required bool isReadOnly,
  8. bool? isGenerated,
  9. bool? isUpdatedAt,
  10. required String type,
  11. String? dbName,
  12. required bool hasDefaultValue,
  13. Object? default$,
  14. List<String>? relationFromFields,
  15. List? relationToFields,
  16. String? relationOnDelete,
  17. String? relationName,
  18. String? documentation,
})

Implementation

const factory Field({
  required FieldKind kind,
  required String name,
  required bool isRequired,
  required bool isList,
  required bool isUnique,
  required bool isId,
  required bool isReadOnly,
  bool? isGenerated,
  bool? isUpdatedAt,
  required String type,
  String? dbName,
  required bool hasDefaultValue,
  Object? default$,
  List<String>? relationFromFields,
  List<dynamic>? relationToFields,
  String? relationOnDelete,
  String? relationName,
  String? documentation,
}) = _Field;