@@ -865,26 +865,6 @@ class UpdateMachine {
865
865
}
866
866
}
867
867
868
- /// In debug mode, controls whether [registerNotificationToken] should
869
- /// have its normal effect.
870
- ///
871
- /// Outside of debug mode, this is always true and the setter has no effect.
872
- static bool get debugEnableRegisterNotificationToken {
873
- bool result = true ;
874
- assert (() {
875
- result = _debugEnableRegisterNotificationToken;
876
- return true ;
877
- }());
878
- return result;
879
- }
880
- static bool _debugEnableRegisterNotificationToken = true ;
881
- static set debugEnableRegisterNotificationToken (bool value) {
882
- assert (() {
883
- _debugEnableRegisterNotificationToken = value;
884
- return true ;
885
- }());
886
- }
887
-
888
868
/// Send this client's notification token to the server, now and if it changes.
889
869
///
890
870
/// TODO The returned future isn't especially meaningful (it may or may not
@@ -910,6 +890,26 @@ class UpdateMachine {
910
890
NotificationService .instance.token.removeListener (_registerNotificationToken);
911
891
}
912
892
893
+ /// In debug mode, controls whether [registerNotificationToken] should
894
+ /// have its normal effect.
895
+ ///
896
+ /// Outside of debug mode, this is always true and the setter has no effect.
897
+ static bool get debugEnableRegisterNotificationToken {
898
+ bool result = true ;
899
+ assert (() {
900
+ result = _debugEnableRegisterNotificationToken;
901
+ return true ;
902
+ }());
903
+ return result;
904
+ }
905
+ static bool _debugEnableRegisterNotificationToken = true ;
906
+ static set debugEnableRegisterNotificationToken (bool value) {
907
+ assert (() {
908
+ _debugEnableRegisterNotificationToken = value;
909
+ return true ;
910
+ }());
911
+ }
912
+
913
913
@override
914
914
String toString () => '${objectRuntimeType (this , 'UpdateMachine' )}#${shortHash (this )}' ;
915
915
}
0 commit comments