getById method

NodeOutput? getById(
  1. String id
)

Implementation

NodeOutput? getById(String id) {
  if (full != null && full!.id == id) {
    return full!;
  }
  if (start != null && start!.id == id) {
    return start!;
  }
  if (end != null && end!.id == id) {
    return end!;
  }
  return null;
}