Aniket Khote

upgraded flutter to 3.22.0

@@ -316,17 +316,20 @@ class GetConnect extends GetConnectInterface { @@ -316,17 +316,20 @@ class GetConnect extends GetConnectInterface {
316 return GraphQLResponse<T>( 316 return GraphQLResponse<T>(
317 graphQLErrors: listError 317 graphQLErrors: listError
318 .map((e) => GraphQLError( 318 .map((e) => GraphQLError(
319 - code: (e['extensions'] != null ? e['extensions']['code'] ?? '' : '').toString(), 319 + code: (e['extensions'] != null
  320 + ? e['extensions']['code'] ?? ''
  321 + : '')
  322 + .toString(),
320 message: (e['message'] ?? '').toString(), 323 message: (e['message'] ?? '').toString(),
321 )) 324 ))
322 .toList()); 325 .toList());
323 } 326 }
324 return GraphQLResponse<T>.fromResponse(res); 327 return GraphQLResponse<T>.fromResponse(res);
325 - } on Exception catch (_) { 328 + } on Exception catch (err) {
326 return GraphQLResponse<T>(graphQLErrors: [ 329 return GraphQLResponse<T>(graphQLErrors: [
327 GraphQLError( 330 GraphQLError(
328 code: null, 331 code: null,
329 - message: _.toString(), 332 + message: err.toString(),
330 ) 333 )
331 ]); 334 ]);
332 } 335 }
@@ -357,11 +360,11 @@ class GetConnect extends GetConnectInterface { @@ -357,11 +360,11 @@ class GetConnect extends GetConnectInterface {
357 .toList()); 360 .toList());
358 } 361 }
359 return GraphQLResponse<T>.fromResponse(res); 362 return GraphQLResponse<T>.fromResponse(res);
360 - } on Exception catch (_) { 363 + } on Exception catch (err) {
361 return GraphQLResponse<T>(graphQLErrors: [ 364 return GraphQLResponse<T>(graphQLErrors: [
362 GraphQLError( 365 GraphQLError(
363 code: null, 366 code: null,
364 - message: _.toString(), 367 + message: err.toString(),
365 ) 368 )
366 ]); 369 ]);
367 } 370 }
@@ -67,6 +67,6 @@ class GetDialogRoute<T> extends PopupRoute<T> { @@ -67,6 +67,6 @@ class GetDialogRoute<T> extends PopupRoute<T> {
67 ), 67 ),
68 child: child); 68 child: child);
69 } // Some default transition 69 } // Some default transition
70 - return _transitionBuilder!(context, animation, secondaryAnimation, child); 70 + return _transitionBuilder(context, animation, secondaryAnimation, child);
71 } 71 }
72 } 72 }
@@ -4,14 +4,15 @@ version: 5.0.0-release-candidate-5 @@ -4,14 +4,15 @@ version: 5.0.0-release-candidate-5
4 homepage: https://github.com/jonataslaw/getx 4 homepage: https://github.com/jonataslaw/getx
5 5
6 environment: 6 environment:
7 - sdk: ">=3.0.0 <4.0.0" 7 + sdk: ">=3.4.0 <4.0.0"
  8 + flutter: ">=3.22.0"
8 9
9 dependencies: 10 dependencies:
10 flutter: 11 flutter:
11 sdk: flutter 12 sdk: flutter
12 flutter_web_plugins: 13 flutter_web_plugins:
13 sdk: flutter 14 sdk: flutter
14 - web: any 15 + web: ">=0.4.0 <0.6.0"
15 16
16 dev_dependencies: 17 dev_dependencies:
17 flutter_lints: ^4.0.0 18 flutter_lints: ^4.0.0
@@ -7,8 +7,8 @@ void main() { @@ -7,8 +7,8 @@ void main() {
7 test('once', () async { 7 test('once', () async {
8 final count = 0.obs; 8 final count = 0.obs;
9 var result = -1; 9 var result = -1;
10 - once(count, (dynamic _) {  
11 - result = _ as int; 10 + once(count, (dynamic val) {
  11 + result = val as int;
12 }); 12 });
13 count.value++; 13 count.value++;
14 await Future.delayed(Duration.zero); 14 await Future.delayed(Duration.zero);
@@ -41,9 +41,9 @@ void main() { @@ -41,9 +41,9 @@ void main() {
41 test('debounce', () async { 41 test('debounce', () async {
42 final count = 0.obs; 42 final count = 0.obs;
43 int? result = -1; 43 int? result = -1;
44 - debounce(count, (dynamic _) { 44 + debounce(count, (dynamic val) {
45 // print(_); 45 // print(_);
46 - result = _ as int?; 46 + result = val as int?;
47 }, time: const Duration(milliseconds: 100)); 47 }, time: const Duration(milliseconds: 100));
48 48
49 count.value++; 49 count.value++;