FieldType constructor

FieldType({
  1. required String name,
  2. required String displayName,
  3. required bool isPrimitive,
  4. List<FieldType> generics = const [],
  5. FieldType? parent,
  6. bool isOptional = false,
  7. bool isEnum = false,
})

Implementation

FieldType({
  required this.name,
  required this.displayName,
  required this.isPrimitive,
  this.generics = const [],
  this.parent,
  this.isOptional = false,
  this.isEnum = false,
}) {
  for (final generic in generics) {
    generic.parent = this;
  }
}