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
arjundevlucid
2022-05-14 18:25:15 +0530
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
6b5bb5fe8fff96e43b031c40ea789e83ca43cdc9
6b5bb5fe
1 parent
fbdf73f1
fixed some return null functions
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
0 deletions
lib/get_navigation/src/routes/get_navigator.dart
lib/get_rx/src/rx_types/rx_core/rx_impl.dart
lib/get_rx/src/rx_types/rx_core/rx_num.dart
lib/get_navigation/src/routes/get_navigator.dart
View file @
6b5bb5f
...
...
@@ -34,6 +34,7 @@ class GetNavigator extends Navigator {
settings:
settings
,
);
}
return
null
;
},
reportsRouteUpdateToEngine:
reportsRouteUpdateToEngine
,
restorationScopeId:
restorationScopeId
,
...
...
lib/get_rx/src/rx_types/rx_core/rx_impl.dart
View file @
6b5bb5f
...
...
@@ -248,18 +248,21 @@ extension RxnBoolExt on Rx<bool?> {
bool
?
get
isFalse
{
if
(
value
!=
null
)
return
!
isTrue
!;
return
null
;
}
bool
?
operator
&(
bool
other
)
{
if
(
value
!=
null
)
{
return
other
&&
value
!;
}
return
null
;
}
bool
?
operator
|(
bool
other
)
{
if
(
value
!=
null
)
{
return
other
||
value
!;
}
return
null
;
}
bool
?
operator
^(
bool
other
)
=>
!
other
==
value
;
...
...
lib/get_rx/src/rx_types/rx_core/rx_num.dart
View file @
6b5bb5f
...
...
@@ -269,6 +269,7 @@ extension RxnNumExt<T extends num> on Rx<T?> {
if
(
value
!=
null
)
{
return
value
!
*
other
;
}
return
null
;
}
/// Euclidean modulo operator.
...
...
@@ -288,6 +289,7 @@ extension RxnNumExt<T extends num> on Rx<T?> {
if
(
value
!=
null
)
{
return
value
!
%
other
;
}
return
null
;
}
/// Division operator.
...
...
@@ -295,6 +297,7 @@ extension RxnNumExt<T extends num> on Rx<T?> {
if
(
value
!=
null
)
{
return
value
!
/
other
;
}
return
null
;
}
/// Truncating division operator.
...
...
@@ -308,6 +311,7 @@ extension RxnNumExt<T extends num> on Rx<T?> {
if
(
value
!=
null
)
{
return
value
!
~/
other
;
}
return
null
;
}
/// Negate operator.
...
...
@@ -315,6 +319,7 @@ extension RxnNumExt<T extends num> on Rx<T?> {
if
(
value
!=
null
)
{
return
-
value
!;
}
return
null
;
}
/// Returns the remainder of the truncating division of `this` by [other].
...
...
@@ -330,6 +335,7 @@ extension RxnNumExt<T extends num> on Rx<T?> {
if
(
value
!=
null
)
{
return
value
!
<
other
;
}
return
null
;
}
/// Relational less than or equal operator.
...
...
@@ -337,6 +343,7 @@ extension RxnNumExt<T extends num> on Rx<T?> {
if
(
value
!=
null
)
{
return
value
!
<=
other
;
}
return
null
;
}
/// Relational greater than operator.
...
...
@@ -344,6 +351,7 @@ extension RxnNumExt<T extends num> on Rx<T?> {
if
(
value
!=
null
)
{
return
value
!
>
other
;
}
return
null
;
}
/// Relational greater than or equal operator.
...
...
@@ -351,6 +359,7 @@ extension RxnNumExt<T extends num> on Rx<T?> {
if
(
value
!=
null
)
{
return
value
!
>=
other
;
}
return
null
;
}
/// True if the number is the double Not-a-Number value; otherwise, false.
...
...
@@ -585,6 +594,7 @@ class RxnNum extends Rx<num?> {
value
=
value
!
+
other
;
return
value
;
}
return
null
;
}
/// Subtraction operator.
...
...
@@ -593,6 +603,7 @@ class RxnNum extends Rx<num?> {
value
=
value
!
-
other
;
return
value
;
}
return
null
;
}
}
...
...
@@ -711,6 +722,7 @@ extension RxnDoubleExt on Rx<double?> {
value
=
value
!
+
other
;
return
this
;
}
return
null
;
}
/// Subtraction operator.
...
...
@@ -719,6 +731,7 @@ extension RxnDoubleExt on Rx<double?> {
value
=
value
!
+
other
;
return
this
;
}
return
null
;
}
/// Multiplication operator.
...
...
@@ -726,12 +739,14 @@ extension RxnDoubleExt on Rx<double?> {
if
(
value
!=
null
)
{
return
value
!
*
other
;
}
return
null
;
}
double
?
operator
%(
num
other
)
{
if
(
value
!=
null
)
{
return
value
!
%
other
;
}
return
null
;
}
/// Division operator.
...
...
@@ -739,6 +754,7 @@ extension RxnDoubleExt on Rx<double?> {
if
(
value
!=
null
)
{
return
value
!
/
other
;
}
return
null
;
}
/// Truncating division operator.
...
...
@@ -749,6 +765,7 @@ extension RxnDoubleExt on Rx<double?> {
if
(
value
!=
null
)
{
return
value
!
~/
other
;
}
return
null
;
}
/// Negate operator. */
...
...
@@ -756,6 +773,7 @@ extension RxnDoubleExt on Rx<double?> {
if
(
value
!=
null
)
{
return
-
value
!;
}
return
null
;
}
/// Returns the absolute value of this [double].
...
...
@@ -1104,6 +1122,7 @@ extension RxnIntExt on Rx<int?> {
if
(
value
!=
null
)
{
return
value
!
&
other
;
}
return
null
;
}
/// Bit-wise or operator.
...
...
@@ -1118,6 +1137,7 @@ extension RxnIntExt on Rx<int?> {
if
(
value
!=
null
)
{
return
value
!
|
other
;
}
return
null
;
}
/// Bit-wise exclusive-or operator.
...
...
@@ -1132,6 +1152,7 @@ extension RxnIntExt on Rx<int?> {
if
(
value
!=
null
)
{
return
value
!
^
other
;
}
return
null
;
}
/// The bit-wise negate operator.
...
...
@@ -1144,6 +1165,7 @@ extension RxnIntExt on Rx<int?> {
if
(
value
!=
null
)
{
return
~
value
!;
}
return
null
;
}
/// Shift the bits of this integer to the left by [shiftAmount].
...
...
@@ -1160,6 +1182,7 @@ extension RxnIntExt on Rx<int?> {
if
(
value
!=
null
)
{
return
value
!
<<
shiftAmount
;
}
return
null
;
}
/// Shift the bits of this integer to the right by [shiftAmount].
...
...
@@ -1173,6 +1196,7 @@ extension RxnIntExt on Rx<int?> {
if
(
value
!=
null
)
{
return
value
!
>>
shiftAmount
;
}
return
null
;
}
/// Returns this integer to the power of [exponent] modulo [modulus].
...
...
@@ -1290,6 +1314,7 @@ extension RxnIntExt on Rx<int?> {
if
(
value
!=
null
)
{
return
-
value
!;
}
return
null
;
}
/// Returns the absolute value of this integer.
...
...
Please
register
or
login
to post a comment