DartType class

Define a Dart type.

Annotations
  • @JsonSerializable()

Constructors

DartType({String? name, List<String> imports = const []})
Instantiate a Dart type.
const
DartType.fromJson(dynamic json)
Build a Dart type from a JSON string or map.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
imports List<String>
Package imports related to this type.
final
name String?
Dart type name.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Convert this Dart type instance to JSON.
toString() String
A string representation of this object.
inherited

Operators

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