AckSchemaInference class final
Infers Ack schema expressions from resolved Dart types and annotations.
The caller resolves application model types and import prefixes. Ack owns scalar, collection, and constraint inference for each generator.
Constructors
- AckSchemaInference({String? ackPrefix})
-
const
Properties
Methods
-
applyConstraints(
String schema, Element declaration, DartType type) → String - Applies constraint annotations declared on a field or parameter.
-
applyDescription(
String schema, Element declaration, {String? sourceComment}) → String - Adds an explicit Ack description or a tagged documentation description.
-
inferType(
DartType type, {required String visibleTypeName(InterfaceType), required String renderType(InterfaceType), required Future< String?> resolveNamed(InterfaceType), required Never unsupported(DartType), required void rejectNullableCollectionElement(DartType), required void validateMapKey(InterfaceType)}) → Future<String> -
Infers a schema expression for
type. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited