appendRouteByCreate method

void appendRouteByCreate(
  1. GetLifeCycleMixin i
)

Appends a route by its created instance.

This method is used internally for managing lifecycle of instances created with Get.create().

Implementation

void appendRouteByCreate(GetLifeCycleMixin i) {
  _routesByCreate[_current] ??= HashSet<Function>();
  _routesByCreate[_current]!.add(i.onDelete);
}