File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
packages/cloud_firestore/cloud_firestore_web/lib/src/interop Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -104,7 +104,8 @@ class Firestore extends JsObjectWrapper<firestore_interop.FirestoreJsImpl> {
104104 return handleThenable (firestore_interop.runTransaction (
105105 jsObject,
106106 updateFunctionWrap,
107- firestore_interop.TransactionOptionsJsImpl (maxAttempts)))
107+ firestore_interop.TransactionOptionsJsImpl (
108+ maxAttempts: maxAttempts)))
108109 .then ((value) => dartify (null ));
109110 }
110111
Original file line number Diff line number Diff line change @@ -193,11 +193,12 @@ external PromiseJsImpl<void> runTransaction(
193193]);
194194
195195@JS ('TransactionOptions' )
196- class TransactionOptionsJsImpl {
197- external factory TransactionOptionsJsImpl (num maxAttempts);
196+ @anonymous
197+ abstract class TransactionOptionsJsImpl {
198+ external factory TransactionOptionsJsImpl ({num maxAttempts});
198199
199200 /// Maximum number of attempts to commit, after which transaction fails. Default is 5.
200- external num get maxAttempts;
201+ external static num get maxAttempts;
201202}
202203
203204@JS ()
You can’t perform that action at this time.
0 commit comments