notificationState method

void notificationState(
  1. String routePath,
  2. Map<String, dynamic> result, {
  3. String? action,
})

通知State状态 routePath 路由地址 action 数据回传识别标识(可为空) result 回传通知参数

Implementation

void notificationState(String routePath, Map<String, dynamic> result, {String? action}) {
  if (routePath.isEmptyString) {
    return;
  }
  _notificationMap.forEach((key, value) {
    if (key.startsWith(routePath)) {
      value.onStateResult(action ?? "", result);
    }
  });
}