get<T> method
Implementation
T get<T>({String? key}) {
Type t = T;
String k = key ?? t.toString();
dynamic object = map[k];
if (object == null) {
throw '"$T" not found. You need to call "set($T())" first or check if exist using contains<$T>() first';
}
return object as T;
}