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