CastFailedException<T> constructor
Implementation
CastFailedException({
this.value,
String? message,
Map<String, String?>? details,
}) : super(
message ?? "Failed to cast value",
details:
details ??
<String, String?>{
"expected": T.toString(),
"value": value?.runtimeType.toString(),
}.notNullValue,
);