configureForTest static method
void
configureForTest({})
Implementation
static void configureForTest({
bool? enabled,
bool captureFrames = false,
String? path,
String? runId,
String? baseDirectory,
DateTime Function()? nowProvider,
bool clear = false,
}) {
_testOverride = true;
_testEnabled = clear ? false : enabled;
_testCaptureFrames = clear ? false : captureFrames;
_testPath = clear ? null : path;
_testRunId = clear ? null : runId;
_testBaseDirectory = clear ? null : baseDirectory;
_testNowProvider = clear ? null : nowProvider;
_resolved = false;
close();
}