Jonatas Borges

update to 4.0.2

  1 +## [4.0.2]
  2 +- Removed "!" of if else conditions until the null-safety of the dart is consistent for using it.
  3 +
1 ## [4.0.1] 4 ## [4.0.1]
2 - Fix changelog 5 - Fix changelog
3 6
@@ -13,6 +13,7 @@ class MyApp extends StatelessWidget { @@ -13,6 +13,7 @@ class MyApp extends StatelessWidget {
13 13
14 @override 14 @override
15 Widget build(BuildContext context) { 15 Widget build(BuildContext context) {
  16 + Get.theme!.accentColor;
16 return GetMaterialApp( 17 return GetMaterialApp(
17 debugShowCheckedModeBanner: false, 18 debugShowCheckedModeBanner: false,
18 enableLog: true, 19 enableLog: true,
@@ -37,7 +37,6 @@ class HttpRequestImpl implements HttpRequestBase { @@ -37,7 +37,6 @@ class HttpRequestImpl implements HttpRequestBase {
37 ..responseType = 'blob' 37 ..responseType = 'blob'
38 ..withCredentials = withCredentials; 38 ..withCredentials = withCredentials;
39 request.headers.forEach(xhr.setRequestHeader); 39 request.headers.forEach(xhr.setRequestHeader);
40 - request.contentLength ?? -1;  
41 40
42 var completer = Completer<Response<T>>(); 41 var completer = Completer<Response<T>>();
43 xhr.onLoad.first.then((_) { 42 xhr.onLoad.first.then((_) {
@@ -250,13 +250,7 @@ class RxnBool extends Rx<bool?> { @@ -250,13 +250,7 @@ class RxnBool extends Rx<bool?> {
250 RxnBool(bool initial) : super(initial); 250 RxnBool(bool initial) : super(initial);
251 @override 251 @override
252 String toString() { 252 String toString() {
253 - if (value == null) {  
254 - return "null";  
255 - } else if (value) {  
256 - return "true";  
257 - } else {  
258 - return "false";  
259 - } 253 + return "$value";
260 } 254 }
261 } 255 }
262 256
1 name: get 1 name: get
2 description: Open screens/snackbars/dialogs without context, manage states and inject dependencies easily with GetX. 2 description: Open screens/snackbars/dialogs without context, manage states and inject dependencies easily with GetX.
3 -version: 4.0.1 3 +version: 4.0.2
4 homepage: https://github.com/jonataslaw/getx 4 homepage: https://github.com/jonataslaw/getx
5 5
6 environment: 6 environment:
@@ -62,6 +62,7 @@ Future<int> stream() { @@ -62,6 +62,7 @@ Future<int> stream() {
62 print( 62 print(
63 """$v listeners notified | [STREAM] time: ${timer.elapsedMicroseconds}ms"""); 63 """$v listeners notified | [STREAM] time: ${timer.elapsedMicroseconds}ms""");
64 c.complete(timer.elapsedMicroseconds); 64 c.complete(timer.elapsedMicroseconds);
  65 + value.close();
65 } 66 }
66 }); 67 });
67 68