getValue<T> method
Implementation
T? getValue<T>(String key, [T? defaultValue]) {
var data = this != null ? this![key] : null;
if (data is T) {
return data;
} else {
return defaultValue;
}
}
T? getValue<T>(String key, [T? defaultValue]) {
var data = this != null ? this![key] : null;
if (data is T) {
return data;
} else {
return defaultValue;
}
}