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
Gabriel Rohden
2020-09-07 11:59:01 -0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
2f27f1171fe65548fc06bc24b149cf67fc077e04
2f27f117
1 parent
8006058f
refactor: Added some missing overrides and ignored a null warning
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
4 deletions
lib/src/navigation/routes/default_route.dart
lib/src/state_manager/rx/rx_iterables/rx_list.dart
lib/src/state_manager/rx/rx_iterables/rx_set.dart
lib/src/navigation/routes/default_route.dart
View file @
2f27f11
...
...
@@ -504,6 +504,7 @@ class _CupertinoBackGestureDetectorState<T>
}
// FIXME: shouldn't we return a default here?
// or perhaps throw error
// ignore: avoid_returning_null
return
null
;
}
...
...
lib/src/state_manager/rx/rx_iterables/rx_list.dart
View file @
2f27f11
...
...
@@ -28,7 +28,9 @@ class RxList<E> implements List<E>, RxInterface<List<E>> {
@override
bool
get
isNotEmpty
=>
value
.
isNotEmpty
;
StreamController
<
List
<
E
>>
subject
=
StreamController
<
List
<
E
>>.
broadcast
();
@override
StreamController
<
List
<
E
>>
subject
=
StreamController
.
broadcast
();
final
Map
<
Stream
<
List
<
E
>>,
StreamSubscription
>
_subscriptions
=
{};
void
operator
[]=(
int
index
,
E
val
)
{
...
...
@@ -188,9 +190,7 @@ class RxList<E> implements List<E>, RxInterface<List<E>> {
if
(
_subscriptions
.
containsKey
(
rxGetX
))
{
return
;
}
_subscriptions
[
rxGetX
]
=
rxGetX
.
listen
((
data
)
{
subject
.
add
(
data
);
});
_subscriptions
[
rxGetX
]
=
rxGetX
.
listen
(
subject
.
add
);
}
set
value
(
List
<
E
>
val
)
{
...
...
lib/src/state_manager/rx/rx_iterables/rx_set.dart
View file @
2f27f11
...
...
@@ -56,6 +56,7 @@ class RxSet<E> implements Set<E>, RxInterface<Set<E>> {
return
val
;
}
@override
void
addAll
(
Iterable
<
E
>
item
)
{
_set
.
addAll
(
item
);
subject
.
add
(
_set
);
...
...
Please
register
or
login
to post a comment