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> {
104
104
return handleThenable (firestore_interop.runTransaction (
105
105
jsObject,
106
106
updateFunctionWrap,
107
- firestore_interop.TransactionOptionsJsImpl (maxAttempts)))
107
+ firestore_interop.TransactionOptionsJsImpl (
108
+ maxAttempts: maxAttempts)))
108
109
.then ((value) => dartify (null ));
109
110
}
110
111
Original file line number Diff line number Diff line change @@ -193,11 +193,12 @@ external PromiseJsImpl<void> runTransaction(
193
193
]);
194
194
195
195
@JS ('TransactionOptions' )
196
- class TransactionOptionsJsImpl {
197
- external factory TransactionOptionsJsImpl (num maxAttempts);
196
+ @anonymous
197
+ abstract class TransactionOptionsJsImpl {
198
+ external factory TransactionOptionsJsImpl ({num maxAttempts});
198
199
199
200
/// Maximum number of attempts to commit, after which transaction fails. Default is 5.
200
- external num get maxAttempts;
201
+ external static num get maxAttempts;
201
202
}
202
203
203
204
@JS ()
You can’t perform that action at this time.
0 commit comments