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