getContextById method

Context? getContextById(
  1. String id
)

Implementation

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