UnaryPattern class

A unary postfix pattern (? or !).

Inheritance

Properties

hashCode → int
The hash code for this object.
no setterinherited
nullAsserted → Pattern
Null-assert pattern: this!.
no setterinherited
nullChecked → Pattern
Null-check pattern: this?.
no setterinherited
operator → String
final
parenthesized → Pattern
Parenthesized pattern: (this).
no setterinherited
pattern → Pattern
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

accept<R>(covariant PatternVisitor<R> visitor, [R? context]) → R
override
and(Pattern other) → Pattern
Logical-and pattern: this && other.
inherited
asA(Reference type) → Pattern
Cast pattern: this as type.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
or(Pattern other) → Pattern
Logical-or pattern: this || other.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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