Committed by
GitHub
Merge pull request #1249 from RafaRuiz/fix/initial_nullables
Initial nullables
Showing
2 changed files
with
2 additions
and
2 deletions
@@ -247,7 +247,7 @@ class RxBool extends Rx<bool> { | @@ -247,7 +247,7 @@ class RxBool extends Rx<bool> { | ||
247 | } | 247 | } |
248 | 248 | ||
249 | class RxnBool extends Rx<bool?> { | 249 | class RxnBool extends Rx<bool?> { |
250 | - RxnBool(bool initial) : super(initial); | 250 | + RxnBool(bool? initial) : super(initial); |
251 | @override | 251 | @override |
252 | String toString() { | 252 | String toString() { |
253 | return "$value"; | 253 | return "$value"; |
@@ -578,7 +578,7 @@ class RxNum extends Rx<num> { | @@ -578,7 +578,7 @@ class RxNum extends Rx<num> { | ||
578 | } | 578 | } |
579 | 579 | ||
580 | class RxnNum extends Rx<num?> { | 580 | class RxnNum extends Rx<num?> { |
581 | - RxnNum(num initial) : super(initial); | 581 | + RxnNum(num? initial) : super(initial); |
582 | 582 | ||
583 | num? operator +(num other) { | 583 | num? operator +(num other) { |
584 | if (value != null) { | 584 | if (value != null) { |
-
Please register or login to post a comment