getContextById method
- String id
Implementation
Context? getContextById(String id) {
if (_body.id == id) return _body;
return _body.descendants
.whereType<Context>()
.where((c) => c.id == id)
.firstOrNull;
}
Context? getContextById(String id) {
if (_body.id == id) return _body;
return _body.descendants
.whereType<Context>()
.where((c) => c.id == id)
.firstOrNull;
}