coerce<T> method
Implementation
@override
T coerce<T>(dynamic input) {
try {
return input as T;
} catch (_) {
return runtimeCast(input, reflectType(T)) as T;
}
}
@override
T coerce<T>(dynamic input) {
try {
return input as T;
} catch (_) {
return runtimeCast(input, reflectType(T)) as T;
}
}