FieldDefinition.ofInput constructor
FieldDefinition.ofInput(})
Implementation
FieldDefinition.ofInput(
this.model,
InputValueDefinitionNode node, {
required this.entityName,
this.isReadOnly = false,
this.isFlattened = false,
this.isId = false,
this.isEager = false,
this.eagerPrefix,
this.isLazy = false,
this.isAutogenerateId = false,
this.isWriteOnly = false,
}) : name = node.name.value,
original = node,
args = [],
isRelationship = node.type.toRawType().contains('GraphRef'),
relationship = null,
typeNode = node.type is ListTypeNode ? (node.type as ListTypeNode).type : node.type,
isList = node.type is ListTypeNode,
dartTypeName = node.type.toDartType(withNullability: false),
isNonNull = node.type.isNonNull;