dataType<T> method
Retrieves the value associated with key
from the request data, cast to type T
.
Implementation
T dataType<T>(String key, {T? def}) {
var map = getAllData();
T res = map[key] ?? def;
return res;
}
Retrieves the value associated with key
from the request data, cast to type T
.
T dataType<T>(String key, {T? def}) {
var map = getAllData();
T res = map[key] ?? def;
return res;
}