Switch class

Representation of the switch construct in Remote Flutter Widgets library blobs.

Inheritance

Constructors

Switch(Object input, Map<Object?, Object> outputs)
Creates a Switch with the given input and outputs.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
input Object
The value to switch on. This is typically a reference, e.g. an ArgsReference, which must be resolved by the runtime to determine the actual value on which to switch.
final
outputs Map<Object?, Object>
The cases for this switch. Keys correspond to values to compare with input. The null value is used as the default case.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
source SourceRange?
The source location that corresponds to this BlobNode, if known.
no setterinherited

Methods

associateSource(SourceRange source) → void
Assign a SourceRange to this BlobNode's source property.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
propagateSource(BlobNode? original) → void
Assign another BlobNode's SourceRange to this BlobNode's source property.
inherited
toString() String
A string representation of this object.
override

Operators

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