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
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