addNotification method
添加路由状态通知(该方法框架内部调用)
Implementation
void addNotification(String routeName, dynamic stateInstance) {
if (routeName.isEmptyString || (stateInstance is! RouteStateNotification)) {
return;
}
_notificationMap["$routeName${stateInstance.hashCode}"] = stateInstance;
}