configurePlatformForTesting function Null safety

void configurePlatformForTesting(
  1. {Browser? browser,
  2. OperatingSystem? operatingSystem,
  3. List<Feature>? features}
)

A test utility that allows a consumer to instruct the library to respond as though it was running on a particular browser and / or operating system.

Calling this method with no arguments will reset the library to its default behavior.

Implementation

void configurePlatformForTesting(
    {Browser? browser,
    OperatingSystem? operatingSystem,
    List<Feature>? features}) {
  _browser = browser;
  _operatingSystem = operatingSystem;
  _features = features;
}