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 4f6ca09 commit caa9c69Copy full SHA for caa9c69
templates/flutter/lib/src/realtime_mixin.dart.twig
@@ -120,13 +120,12 @@ mixin RealtimeMixin {
120
}
121
122
int _getTimeout() {
123
- return _retries < 5
124
- ? 1
125
- : _retries < 15
126
- ? 5
127
- : _retries < 100
128
- ? 10
129
- : 60;
+ return switch (_retries) {
+ < 5 => 1,
+ < 15 => 5,
+ < 100 => 10,
+ _ => 60,
+ };
130
131
132
Uri _prepareUri() {
0 commit comments