make<T> static method Null safety

ManagedRelationshipDescription make<T>(
  1. ManagedEntity entity,
  2. String name,
  3. ManagedType? type,
  4. ManagedEntity destinationEntity,
  5. DeleteRule? deleteRule,
  6. ManagedRelationshipType relationshipType,
  7. String inverseKey,
  8. {bool unique = false,
  9. bool indexed = false,
  10. bool nullable = false,
  11. bool includedInDefaultResultSet = true,
  12. List<ManagedValidator> validators = const [],
  13. ResponseKey? responseKey,
  14. ResponseModel? responseModel}
)

Implementation

static ManagedRelationshipDescription make<T>(
  ManagedEntity entity,
  String name,
  ManagedType? type,
  ManagedEntity destinationEntity,
  DeleteRule? deleteRule,
  ManagedRelationshipType relationshipType,
  String inverseKey, {
  bool unique = false,
  bool indexed = false,
  bool nullable = false,
  bool includedInDefaultResultSet = true,
  List<ManagedValidator> validators = const [],
  ResponseKey? responseKey,
  ResponseModel? responseModel,
}) {
  return ManagedRelationshipDescription(
    entity,
    name,
    type,
    T,
    destinationEntity,
    deleteRule,
    relationshipType,
    inverseKey,
    unique: unique,
    indexed: indexed,
    nullable: nullable,
    includedInDefaultResultSet: includedInDefaultResultSet,
    validators: validators,
    responseKey: responseKey,
    responseModel: responseModel,
  );
}