widgets property

List<MatrixWidget> widgets

Returns all present Widgets in the room.

Implementation

List<MatrixWidget> get widgets => {
      ...states['m.widget'] ?? states['im.vector.modular.widgets'] ?? {},
    }.values.expand((e) {
      try {
        return [MatrixWidget.fromJson(e.content, this)];
      } catch (_) {
        return <MatrixWidget>[];
      }
    }).toList();