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
kawal7415
2020-09-09 14:00:05 +0530
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
223792b3c78ee99d5062ffb1bf6eb08c4d7d33f2
223792b3
1 parent
75fadfe8
dart formatting
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
2 additions
and
9 deletions
example/lib/routes/app_routes.dart
lib/src/navigation/extension_navigation.dart
lib/src/navigation/root/root_widget.dart
lib/src/state_manager/rx/rx_core/rx_impl.dart
example/lib/routes/app_routes.dart
View file @
223792b
part of
'app_pages.dart'
;
abstract
class
Routes
{
abstract
class
Routes
{
static
const
HOME
=
'/home'
;
static
const
COUNTRY
=
'/country'
;
static
const
DETAILS
=
'/details'
;
...
...
lib/src/navigation/extension_navigation.dart
View file @
223792b
lib/src/navigation/root/root_widget.dart
View file @
223792b
...
...
@@ -261,4 +261,3 @@ class GetMaterialApp extends StatelessWidget {
abstract
class
Translations
{
Map
<
String
,
Map
<
String
,
String
>>
get
keys
;
}
...
...
lib/src/state_manager/rx/rx_core/rx_impl.dart
View file @
223792b
...
...
@@ -3,7 +3,6 @@ import 'dart:collection';
import
'../rx_core/rx_interface.dart'
;
/// global object that registers against `GetX` and `Obx`, and allows the
/// reactivity
/// of those `Widgets` and Rx values.
...
...
@@ -115,7 +114,7 @@ class _RxImpl<T> implements RxInterface<T> {
/// print('${inputError.runtimeType}: $inputError'); // outputs > RxString: null
/// ```
void
nil
()
{
subject
.
add
(
_value
=
null
);
subject
.
add
(
_value
=
null
);
}
/// Same as `toString()` but using a getter.
...
...
@@ -162,7 +161,6 @@ class _RxImpl<T> implements RxInterface<T> {
bool
firstRebuild
=
true
;
/// Updates the [value] and adds it to the stream, updating the observer
/// Widget, only if it's different from the previous value.
set
value
(
T
val
)
{
...
...
@@ -186,14 +184,12 @@ class _RxImpl<T> implements RxInterface<T> {
{
Function
onError
,
void
Function
()
onDone
,
bool
cancelOnError
})
=>
stream
.
listen
(
onData
,
onError:
onError
,
onDone:
onDone
);
/// Binds an existing stream to this Rx to keep the values in sync.
void
bindStream
(
Stream
<
T
>
stream
)
=>
stream
.
listen
((
va
)
=>
value
=
va
);
Stream
<
R
>
map
<
R
>(
R
mapper
(
T
data
))
=>
stream
.
map
(
mapper
);
}
/// Rx class for `bool` Type.
class
RxBool
extends
_RxImpl
<
bool
>
{
RxBool
([
bool
initial
])
{
...
...
@@ -298,7 +294,6 @@ class RxInt extends _BaseRxNum<int> {
}
}
/// Foundation class used for custom `Types` outside the common native Dart
/// types.
/// For example, any custom "Model" class, like User().obs will use `Rx` as
...
...
Please
register
or
login
to post a comment