initWithFirstDependence method

void initWithFirstDependence(
  1. Node dependence,
  2. dynamic data,
  3. Object? group,
  4. Type t, [
  5. int? position,
])

Implementation

void initWithFirstDependence(
    Node dependence, dynamic data, Object? group, Type t,
    [int? position]) {
  assert(!_init && _dependenceTree.isEmpty);
  _init = true;

  _data = data;
  _group = group;
  _t = t;

  _dependenceTree.add(dependence);
  assert(() {
    position = position == null ? null : position! + 1;
    return true;
  }());
  assert(Log.w('$label created.', position: position ?? 0));

  NopLifecycle._autoInit(this);
  NopLifecycle._autoNewRoute(this, dependence);
  // try
  onPop();
}