addNotification method

void addNotification(
  1. String routeName,
  2. dynamic stateInstance
)

添加路由状态通知(该方法框架内部调用)

Implementation

void addNotification(String routeName, dynamic stateInstance) {
  if (routeName.isEmptyString || (stateInstance is! RouteStateNotification)) {
    return;
  }
  _notificationMap["$routeName${stateInstance.hashCode}"] = stateInstance;
}