5e74472449
Optionals were being ignored for some methods and for optionals that have a default of Undefined or None, they should be marked nullable in Dart syntax regardless of whether they are in the IDL. Change-Id: Icc71300dc7d8e06fef640a5ca8d502b093c0580c Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/134765 Commit-Queue: Srujan Gaddam <srujzs@google.com> Reviewed-by: Sigmund Cherem <sigmund@google.com>
22 lines
815 B
Plaintext
22 lines
815 B
Plaintext
// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
|
|
// for details. All rights reserved. Use of this source code is governed by a
|
|
// BSD-style license that can be found in the LICENSE file.
|
|
|
|
// WARNING: Do not edit - generated code.
|
|
|
|
part of $LIBRARYNAME;
|
|
|
|
$(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS {
|
|
factory $CLASSNAME(String type,
|
|
{bool canBubble: false, bool cancelable: false, String$NULLABLE key,
|
|
String$NULLABLE oldValue, String$NULLABLE newValue, String$NULLABLE url,
|
|
Storage$NULLABLE storageArea}) {
|
|
|
|
StorageEvent e = document._createEvent("StorageEvent") $#NULLSAFECAST(as StorageEvent);
|
|
e._initStorageEvent(type, canBubble, cancelable, key, oldValue, newValue,
|
|
url, storageArea);
|
|
return e;
|
|
}
|
|
$!MEMBERS
|
|
}
|