Class class

Represents a class with fields.

Inheritance

Constructors

Class({required String name, required List<NamedType> fields, bool isSwiftClass = false, List<String> documentationComments = const <String>[]})
Parametric constructor for Class.

Properties

documentationComments List<String>
List of documentation comments, separated by line.
getter/setter pair
fields List<NamedType>
All the fields contained in the class.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
isSwiftClass bool
Determines whether the defined class should be represented as a struct or a class in Swift generation.
getter/setter pair
name String
The name of the class.
getter/setter pair
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
toString() String
A string representation of this object.
override

Operators

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