castValue<T> method
Implementation
T castValue<T>() {
if (value is T) {
return value as T;
}
throw Exception('Invalid cast');
}
T castValue<T>() {
if (value is T) {
return value as T;
}
throw Exception('Invalid cast');
}