TypeReference class

Inheritance
Implemented types
Annotations
  • @immutable

Constructors

TypeReference([void updates(TypeReferenceBuilder b) ])
factory

Properties

bound Reference
Optional bound generic.
@nullable, read-only
expression Expression
May be overridden to support other types implementing Expression.
read-only, override
symbol → String
Name of the class, method, or field.
read-only, override
type TypeReference
Returns as a TypeReference, which allows adding generic type parameters.
read-only, override
types BuiltList<Reference>
Generic type parameters.
read-only
url → String
Relative, package: or dart: URL of the library. [...]
@nullable, read-only, override
awaited Expression
This expression preceded by await.
read-only, inherited
code Code
The expression as a valid Code block. [...]
read-only, inherited
hashCode → int
The hash code for this object.
read-only, inherited
returned Expression
This expression preceded by return.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited
statement Code
The expression as a valid Code block with a trailing ;.
read-only, inherited

Methods

accept<R>(covariant SpecVisitor<R> visitor, [ R context ]) → R
override
constInstance(Iterable<Expression> positionalArguments, [ Map<String, Expression> namedArguments = const {}, List<Reference> typeArguments = const [] ]) Expression
Returns a const instance of this expression.
override
constInstanceNamed(String name, Iterable<Expression> positionalArguments, [ Map<String, Expression> namedArguments = const {}, List<Reference> typeArguments = const [] ]) Expression
Returns a const instance of this expression with a named constructor.
override
newInstance(Iterable<Expression> positionalArguments, [ Map<String, Expression> namedArguments = const {}, List<Reference> typeArguments = const [] ]) Expression
Returns a new instance of this expression.
override
newInstanceNamed(String name, Iterable<Expression> positionalArguments, [ Map<String, Expression> namedArguments = const {}, List<Reference> typeArguments = const [] ]) Expression
Returns a new instance of this expression with a named constructor.
override
and(Expression other) Expression
Returns the result of this && other.
inherited
asA(Expression other) Expression
Returns the result of this as other.
inherited
assign(Expression other) Expression
Return {other} = {this}.
inherited
assignConst(String name, [ Reference type ]) Expression
Return const {name} = {this}.
inherited
assignFinal(String name, [ Reference type ]) Expression
Return final {name} = {this}.
inherited
assignNullAware(Expression other) Expression
Return {other} ??= {this}.
inherited
assignVar(String name, [ Reference type ]) Expression
Return var {name} = {this}.
inherited
call(Iterable<Expression> positionalArguments, [ Map<String, Expression> namedArguments = const {}, List<Reference> typeArguments = const [] ]) Expression
Call this expression as a method.
inherited
conditional(Expression whenTrue, Expression whenFalse) Expression
inherited
equalTo(Expression other) Expression
Returns the result of this == other.
inherited
greaterOrEqualTo(Expression other) Expression
Returns the result of this >= other.
inherited
greaterThan(Expression other) Expression
Returns the result of this > other.
inherited
index(Expression index) Expression
Returns accessing the index operator ([]) on this.
inherited
isA(Expression other) Expression
Returns the result of this is other.
inherited
isNotA(Expression other) Expression
Returns the result of this is! other.
inherited
lessOrEqualTo(Expression other) Expression
Returns the result of this <= other.
inherited
lessThan(Expression other) Expression
Returns the result of this < other.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
notEqualTo(Expression other) Expression
Returns the result of this != other.
inherited
nullSafeProperty(String name) Expression
Returns an expression accessing ?.<name> on this expression.
inherited
operatorAdd(Expression other) Expression
Returns the result of this + other.
inherited
operatorDivide(Expression other) Expression
Returns the result of this / other.
inherited
operatorEuclideanModulo(Expression other) Expression
Returns the result of this % other.
inherited
operatorMultiply(Expression other) Expression
Returns the result of this * other.
inherited
operatorSubstract(Expression other) Expression
Returns the result of this - other.
inherited
property(String name) Expression
Returns an expression accessing .<name> on this expression.
inherited
rebuild(dynamic updates(B builder)) TypeReference
Rebuilds the instance. [...]
inherited
toBuilder() TypeReferenceBuilder
Converts the instance to a builder B. [...]
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator.
inherited