TypeSpec class sealed

Base class for all type specifications.

This sealed class hierarchy represents the intermediate representation of schema types that can be transformed into various output formats.

Implementers

Properties

description String?
Optional description of this type.
final
examples List<Object>?
Example values for documentation.
final
hashCode int
The hash code for this object.
no setterinherited
isDeprecated bool
Whether this type is deprecated.
final
nullable bool
Whether this type accepts null values.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

asNullable() TypeSpec
Creates a copy of this spec with nullable set to true.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
withDescription(String description) TypeSpec
Creates a copy of this spec with the given description.

Operators

operator ==(Object other) bool
The equality operator.
inherited