ListInstance<T extends BaseInstance> class

An instance that allows to define multiple types of BaseInstances as a List.

ListInstance generates code of the form `Instance1, Instance2, ...

Inheritance

Constructors

ListInstance({required List<T> instances, bool trailingComma = true})
Creates a new instance of ListInstance
const

Properties

hashCode int
The hash code for this object.
no setteroverride
instances List<T>
Specifies the instances injected into the list.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
trailingComma bool
Specifies if a trailing comma should be inserted into the code. This leads to better code formatting.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toCode() String
Transforms the BaseInstance or its implementation into Code (a String)
override
toString() String
A string representation of this object.
override

Operators

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