DynamicValueTypeMismatchException constructor

DynamicValueTypeMismatchException(
  1. DartBlockDynamicValue dynamicValue,
  2. dynamic concreteValue,
  3. Type expectedType,
  4. 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!' : ''}",
    );