value<T> static method
Returns the value associated with the given key from the source, cast to the specified type.
Implementation
static T? value<T>(String key, dynamic source) {
final data = _v(key, source);
if (data is T) {
return data;
} else {
return null;
}
}