InvalidUnionTypeException class

Thrown when an invalid union type value is detected.

An expression whose static type is a union type of the form UnionK<X1, ... XK> and whose value does not have any of the types X1 .. XK is an invalid union type value. This exception is used to report that such a value has been encountered.

Implemented types

Constructors

InvalidUnionTypeException(String type, Object? value)

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type String
Description of the invalid union type.
final
value Object?
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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