add method
Set session value
by key
Example:
server.get('/api/set/:item', (ctx) async {
final Session session = await ctx.session;
session.add('item', ctx.pathParams.item);
// ...
});
Implementation
void add(String key, String value) {
_data[key] = value;
needsUpdate = true;
}