debugSetOfflineEnabledOverride static method

  1. @visibleForTesting
void debugSetOfflineEnabledOverride(
  1. bool? value
)

Test-only seam: force isOfflineEnabled to a fixed answer.

isOfflineEnabled is a static call, which Dart gives no clean way to stub, and the UI Kit branches on it in six places that each need testing both ways. Pass null to restore the real answer; always reset in tearDown.

Implementation

@visibleForTesting
static void debugSetOfflineEnabledOverride(bool? value) =>
    _offlineEnabledOverride = value;