StorageEvent 构造函数

StorageEvent(
  1. String type,
  2. {bool canBubble = false,
  3. bool cancelable = false,
  4. String? key,
  5. String? oldValue,
  6. String? newValue,
  7. String? url,
  8. Storage? storageArea}
)

实现

factory StorageEvent(String type,
    {bool canBubble = false,
    bool cancelable = false,
    String? key,
    String? oldValue,
    String? newValue,
    String? url,
    Storage? storageArea}) {
  StorageEvent e = document._createEvent("StorageEvent") as StorageEvent;
  e._initStorageEvent(
      type, canBubble, cancelable, key, oldValue, newValue, url, storageArea);
  return e;
}