Toggle navigation
Toggle navigation
This project
Loading...
Sign in
flutter_package
/
fluttertpc_get
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Jonatas
2020-11-13 10:38:50 -0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
69f1b80736c1f8abae6271a6f470ba685bc0c5c0
69f1b807
1 parent
106dfe8c
update to 3.17.1
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
10 additions
and
2 deletions
CHANGELOG.md
example/lib/main.dart
lib/get_rx/src/rx_types/rx_iterables/rx_list.dart
lib/get_rx/src/rx_types/rx_iterables/rx_map.dart
lib/get_rx/src/rx_types/rx_iterables/rx_set.dart
pubspec.yaml
CHANGELOG.md
View file @
69f1b80
## [3.17.1]
-
Allow list.assignAll, map.assignAll and set.assignAll operate with null values
## [3.17.0]
-
Added GetCupertinoApp
-
Added initial suport to navigator 2.0
...
...
example/lib/main.dart
View file @
69f1b80
...
...
@@ -14,7 +14,6 @@ class MyApp extends StatelessWidget {
@override
Widget
build
(
BuildContext
context
)
{
StreamController
();
return
GetMaterialApp
(
debugShowCheckedModeBanner:
false
,
enableLog:
true
,
...
...
lib/get_rx/src/rx_types/rx_iterables/rx_list.dart
View file @
69f1b80
...
...
@@ -72,12 +72,14 @@ class RxList<E> extends ListMixin<E>
/// Replaces all existing items of this list with [item]
void
assign
(
E
item
)
{
_value
??=
<
E
>[];
clear
();
add
(
item
);
}
/// Replaces all existing items of this list with [items]
void
assignAll
(
Iterable
<
E
>
items
)
{
_value
??=
<
E
>[];
clear
();
addAll
(
items
);
}
...
...
lib/get_rx/src/rx_types/rx_iterables/rx_map.dart
View file @
69f1b80
...
...
@@ -46,6 +46,7 @@ class RxMap<K, V> extends MapMixin<K, V>
}
void
assign
(
K
key
,
V
val
)
{
_value
??=
<
K
,
V
>{};
_value
.
clear
();
_value
[
key
]
=
val
;
refresh
();
...
...
@@ -53,6 +54,7 @@ class RxMap<K, V> extends MapMixin<K, V>
void
assignAll
(
Map
<
K
,
V
>
val
)
{
if
(
_value
==
val
)
return
;
_value
??=
<
K
,
V
>{};
_value
=
val
;
refresh
();
}
...
...
lib/get_rx/src/rx_types/rx_iterables/rx_set.dart
View file @
69f1b80
...
...
@@ -41,6 +41,7 @@ class RxSet<E> extends SetMixin<E>
/// Replaces all existing items of this list with [item]
void
assign
(
E
item
)
{
_value
??=
<
E
>{};
clear
();
add
(
item
);
}
...
...
@@ -52,6 +53,7 @@ class RxSet<E> extends SetMixin<E>
/// Replaces all existing items of this list with [items]
void
assignAll
(
Iterable
<
E
>
items
)
{
_value
??=
<
E
>{};
clear
();
addAll
(
items
);
}
...
...
pubspec.yaml
View file @
69f1b80
name
:
get
description
:
Open screens/snackbars/dialogs/bottomSheets without context, manage states and inject dependencies easily with GetX.
version
:
3.17.
0
version
:
3.17.
1
homepage
:
https://github.com/jonataslaw/getx
environment
:
...
...
Please
register
or
login
to post a comment