Skip to content

Commit e963af5

Browse files
committed
store [nfc]: Move debugEnableRegisterNotificationToken to end of class
We'll need another of these for fetching emoji data. Let's move them out from amidst all the main logic, to keep down the clutter.
1 parent ce01d06 commit e963af5

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

lib/model/store.dart

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -865,26 +865,6 @@ class UpdateMachine {
865865
}
866866
}
867867

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-
888868
/// Send this client's notification token to the server, now and if it changes.
889869
///
890870
/// TODO The returned future isn't especially meaningful (it may or may not
@@ -910,6 +890,26 @@ class UpdateMachine {
910890
NotificationService.instance.token.removeListener(_registerNotificationToken);
911891
}
912892

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+
913913
@override
914914
String toString() => '${objectRuntimeType(this, 'UpdateMachine')}#${shortHash(this)}';
915915
}

0 commit comments

Comments
 (0)