Jonatas Borges

update to 4.0.3

## [4.0.3]
- Added new linter rules to improve score
## [4.0.2]
- Removed "!" of if else conditions until the null-safety of the dart is consistent for using it.
... ...
... ... @@ -21,6 +21,7 @@ linter:
# STYLE
camel_case_types: true
close_sinks: true
unnecessary_statements: true
camel_case_extensions: true
library_names: true
file_names: true
... ...
... ... @@ -1102,8 +1102,6 @@ Since version 2.8 it is possible to access the properties
return WidgetsBinding.instance;
}
//TODO: Change to ui.SingletonFlutterWindow rather dynamic
//when Flutter update stable. dynamic is used to avoid Breaking Changes
/// The window to which this binding is bound.
ui.SingletonFlutterWindow get window => ui.window;
... ...
... ... @@ -143,9 +143,9 @@ extension ListExtension<E> on List<E> {
/// Replaces all existing items of this list with [item]
void assign(E item) {
if (this is RxList) {
(this as RxList)._value;
}
// if (this is RxList) {
// (this as RxList)._value;
// }
clear();
add(item);
... ... @@ -153,9 +153,9 @@ extension ListExtension<E> on List<E> {
/// Replaces all existing items of this list with [items]
void assignAll(Iterable<E> items) {
if (this is RxList) {
(this as RxList)._value;
}
// if (this is RxList) {
// (this as RxList)._value;
// }
clear();
addAll(items);
}
... ...
... ... @@ -83,7 +83,7 @@ extension MapExtension<K, V> on Map<K, V> {
void assign(K key, V val) {
if (this is RxMap) {
final map = (this as RxMap);
map._value;
// map._value;
map._value.clear();
this[key] = val;
} else {
... ...
... ... @@ -134,9 +134,9 @@ extension SetExtension<E> on Set<E> {
/// Replaces all existing items of this list with [item]
void assign(E item) {
if (this is RxSet) {
(this as RxSet)._value;
}
// if (this is RxSet) {
// (this as RxSet)._value;
// }
clear();
add(item);
... ... @@ -144,9 +144,9 @@ extension SetExtension<E> on Set<E> {
/// Replaces all existing items of this list with [items]
void assignAll(Iterable<E> items) {
if (this is RxSet) {
(this as RxSet)._value;
}
// if (this is RxSet) {
// (this as RxSet)._value;
// }
clear();
addAll(items);
}
... ...
name: get
description: Open screens/snackbars/dialogs without context, manage states and inject dependencies easily with GetX.
version: 4.0.2
version: 4.0.3
homepage: https://github.com/jonataslaw/getx
environment:
... ...