We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d27b46c commit c5fc2d9Copy full SHA for c5fc2d9
test/example_data.dart
@@ -142,6 +142,10 @@ User user({
142
);
143
}
144
145
+/// A fresh user ID, from a random but always strictly increasing sequence.
146
+int _nextAccountId() => (_lastAccountId += 1 + Random().nextInt(100));
147
+int _lastAccountId = 1000;
148
+
149
Account account({
150
int? id,
151
Uri? realmUrl,
@@ -158,7 +162,7 @@ Account account({
158
162
// generated to serve as a "Zulip API email".
159
163
final email = user.deliveryEmail ?? _nextEmail();
160
164
return Account(
161
- id: id ?? 1000, // TODO generate example IDs
165
+ id: id ?? _nextAccountId(),
166
realmUrl: realmUrl ?? _realmUrl,
167
email: email,
168
apiKey: apiKey ?? 'aeouasdf',
0 commit comments