widgets property
Returns all present Widgets in the room.
Implementation
List<SDNWidget> get widgets => {
...states['m.widget'] ?? states['im.vector.modular.widgets'] ?? {},
}.values.expand((e) {
try {
return [SDNWidget.fromJson(e.content, this)];
} catch (_) {
return <SDNWidget>[];
}
}).toList();