withEnabledExperiments<T> function

T withEnabledExperiments<T>(
  1. T fn(),
  2. List<String> enabledExperiments
)

Runs fn in a Zone, setting enabledExperiments for all code running in that Zone.

Implementation

T withEnabledExperiments<T>(T Function() fn, List<String> enabledExperiments) =>
    runZoned(fn, zoneValues: {_enabledExperimentsKey: enabledExperiments});