DynamicValueTypeMismatchException constructor
DynamicValueTypeMismatchException(
- DartBlockDynamicValue dynamicValue,
- dynamic concreteValue,
- Type expectedType,
- Type gotType,
Implementation
DynamicValueTypeMismatchException(
this.dynamicValue,
this.concreteValue,
this.expectedType,
this.gotType,
) : super(
title: "Value Type Mismatch",
message:
"Value type mismatch for '${dynamicValue.toString()}': expected type '$expectedType', got '$gotType'${concreteValue != null ? '($concreteValue)' : ''}.${concreteValue == null && dynamicValue is DartBlockVariable ? '\nEnsure you have assigned an initial value to the variable!' : ''}",
);