Showing
7 changed files
with
18 additions
and
16 deletions
| @@ -21,6 +21,7 @@ linter: | @@ -21,6 +21,7 @@ linter: | ||
| 21 | # STYLE | 21 | # STYLE |
| 22 | camel_case_types: true | 22 | camel_case_types: true |
| 23 | close_sinks: true | 23 | close_sinks: true |
| 24 | + unnecessary_statements: true | ||
| 24 | camel_case_extensions: true | 25 | camel_case_extensions: true |
| 25 | library_names: true | 26 | library_names: true |
| 26 | file_names: true | 27 | file_names: true |
| @@ -1102,8 +1102,6 @@ Since version 2.8 it is possible to access the properties | @@ -1102,8 +1102,6 @@ Since version 2.8 it is possible to access the properties | ||
| 1102 | return WidgetsBinding.instance; | 1102 | return WidgetsBinding.instance; |
| 1103 | } | 1103 | } |
| 1104 | 1104 | ||
| 1105 | - //TODO: Change to ui.SingletonFlutterWindow rather dynamic | ||
| 1106 | - //when Flutter update stable. dynamic is used to avoid Breaking Changes | ||
| 1107 | /// The window to which this binding is bound. | 1105 | /// The window to which this binding is bound. |
| 1108 | ui.SingletonFlutterWindow get window => ui.window; | 1106 | ui.SingletonFlutterWindow get window => ui.window; |
| 1109 | 1107 |
| @@ -143,9 +143,9 @@ extension ListExtension<E> on List<E> { | @@ -143,9 +143,9 @@ extension ListExtension<E> on List<E> { | ||
| 143 | 143 | ||
| 144 | /// Replaces all existing items of this list with [item] | 144 | /// Replaces all existing items of this list with [item] |
| 145 | void assign(E item) { | 145 | void assign(E item) { |
| 146 | - if (this is RxList) { | ||
| 147 | - (this as RxList)._value; | ||
| 148 | - } | 146 | + // if (this is RxList) { |
| 147 | + // (this as RxList)._value; | ||
| 148 | + // } | ||
| 149 | 149 | ||
| 150 | clear(); | 150 | clear(); |
| 151 | add(item); | 151 | add(item); |
| @@ -153,9 +153,9 @@ extension ListExtension<E> on List<E> { | @@ -153,9 +153,9 @@ extension ListExtension<E> on List<E> { | ||
| 153 | 153 | ||
| 154 | /// Replaces all existing items of this list with [items] | 154 | /// Replaces all existing items of this list with [items] |
| 155 | void assignAll(Iterable<E> items) { | 155 | void assignAll(Iterable<E> items) { |
| 156 | - if (this is RxList) { | ||
| 157 | - (this as RxList)._value; | ||
| 158 | - } | 156 | + // if (this is RxList) { |
| 157 | + // (this as RxList)._value; | ||
| 158 | + // } | ||
| 159 | clear(); | 159 | clear(); |
| 160 | addAll(items); | 160 | addAll(items); |
| 161 | } | 161 | } |
| @@ -83,7 +83,7 @@ extension MapExtension<K, V> on Map<K, V> { | @@ -83,7 +83,7 @@ extension MapExtension<K, V> on Map<K, V> { | ||
| 83 | void assign(K key, V val) { | 83 | void assign(K key, V val) { |
| 84 | if (this is RxMap) { | 84 | if (this is RxMap) { |
| 85 | final map = (this as RxMap); | 85 | final map = (this as RxMap); |
| 86 | - map._value; | 86 | + // map._value; |
| 87 | map._value.clear(); | 87 | map._value.clear(); |
| 88 | this[key] = val; | 88 | this[key] = val; |
| 89 | } else { | 89 | } else { |
| @@ -134,9 +134,9 @@ extension SetExtension<E> on Set<E> { | @@ -134,9 +134,9 @@ extension SetExtension<E> on Set<E> { | ||
| 134 | 134 | ||
| 135 | /// Replaces all existing items of this list with [item] | 135 | /// Replaces all existing items of this list with [item] |
| 136 | void assign(E item) { | 136 | void assign(E item) { |
| 137 | - if (this is RxSet) { | ||
| 138 | - (this as RxSet)._value; | ||
| 139 | - } | 137 | + // if (this is RxSet) { |
| 138 | + // (this as RxSet)._value; | ||
| 139 | + // } | ||
| 140 | 140 | ||
| 141 | clear(); | 141 | clear(); |
| 142 | add(item); | 142 | add(item); |
| @@ -144,9 +144,9 @@ extension SetExtension<E> on Set<E> { | @@ -144,9 +144,9 @@ extension SetExtension<E> on Set<E> { | ||
| 144 | 144 | ||
| 145 | /// Replaces all existing items of this list with [items] | 145 | /// Replaces all existing items of this list with [items] |
| 146 | void assignAll(Iterable<E> items) { | 146 | void assignAll(Iterable<E> items) { |
| 147 | - if (this is RxSet) { | ||
| 148 | - (this as RxSet)._value; | ||
| 149 | - } | 147 | + // if (this is RxSet) { |
| 148 | + // (this as RxSet)._value; | ||
| 149 | + // } | ||
| 150 | clear(); | 150 | clear(); |
| 151 | addAll(items); | 151 | addAll(items); |
| 152 | } | 152 | } |
| 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.2 | 3 | +version: 4.0.3 |
| 4 | homepage: https://github.com/jonataslaw/getx | 4 | homepage: https://github.com/jonataslaw/getx |
| 5 | 5 | ||
| 6 | environment: | 6 | environment: |
-
Please register or login to post a comment