CustomType class ast
A custom class definition.
- Inheritance
-
- Object
- AbstractType
- CustomType
- Available extensions
Constructors
-
CustomType({required String className, required List<
TypeMember> members, bool nullable = false}) -
Construct a new CustomType.
const
Properties
- className → String
-
Name of this class.
finalinherited
- hashCode → int
-
The hash code for this object.
no setteroverride
-
members
→ List<
TypeMember> -
Fields of this class.
final
- nullable → bool
-
Bool indicator if null is allowed.
final
- printDecoderMethod → String
-
Available on AbstractType, provided by the DecoderMethod extension
Output decoding method line.no setter - printType → String
-
Available on AbstractType, provided by the AbstractTypeSerializer extension
Output AbstractType as dart code.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- withDataClassMetadata → CustomType
-
Available on CustomType, provided by the CustomType2DataClass extension
Add Annotation data to CustomType by generating the dataclass using generateDataClassFile and the using analyze to collect the annotations.no setter
Methods
-
generateDataClassBody(
SquintGeneratorOptions options) → String -
Available on CustomType, provided by the CustomType2DataClass extension
Generate data class from CustomType. -
generateDataClassFile(
{SquintGeneratorOptions options = standardSquintGeneratorOptions}) → String -
Available on CustomType, provided by the CustomType2DataClass extension
Generate data class from CustomType. -
generateJsonDecodingFile(
{required String relativeImport}) → String -
Available on CustomType, provided by the JsonConversionExtensionsGenerator extension
Generate deserialization method. -
importStatements(
Set< AbstractType> types) → Set<String> -
Available on CustomType, provided by the ImportsBuilder extension
Return import statement for all non-standard types. -
normalizeType(
Set< EnumType> enumTypes, Set<CustomType> customTypes) → AbstractType -
Available on AbstractType, provided by the AbstractTypeNormalizer extension
Normalize AbstractType by replacing any (nested Type) with the instance scanned by the analyzer. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
-
unwrapNestedTypes(
List< AbstractType> types) → List<AbstractType> -
Available on CustomType, provided by the CustomType2DataClass extension
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override