Class class
Configuration for defining a class.
Constructors
-
Class({required String name, Reference? extends_, Iterable<
Reference> implements = const [], Iterable<Reference> with_ = const [], bool isAbstract = false, Iterable<Constructor> constructors = const [], Iterable<Field> fields = const [], Iterable<Method> methods = const [], Iterable<Docs> docs = const [], Iterable<Annotation> annotations = const []}) -
Configuration for defining a class.
const
Properties
-
annotations
→ Iterable<
Annotation> -
The annotations of this class.
final
-
constructors
→ Iterable<
Constructor> -
The constructors of this class.
final
-
docs
→ Iterable<
Docs> -
The documentation for this class.
final
- extends_ → Reference?
-
The class this class should extend.
final
-
fields
→ Iterable<
Field> -
The fields of this class.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
implements
→ Iterable<
Reference> -
The classes this class should implement.
final
- isAbstract → bool
-
Whether this is class is abstract.
final
-
methods
→ Iterable<
Method> -
The methods of this class.
final
- name → String
-
The name of the class.
final
-
props
→ List<
Object?> -
The list of properties that will be used to determine whether
two instances are equal.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stringify → bool?
-
If set to
true
, the toString method will be overridden to output this instance's props.no setterinherited -
with_
→ Iterable<
Reference> -
The mixins this class should use.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited