evaluate method

bool evaluate(
  1. SuitePlatform platform
)

Returns whether the selector matches the given platform.

Implementation

bool evaluate(SuitePlatform platform) =>
    _inner.evaluate((String variable) => switch (variable) {
          _
              when variable == platform.runtime.identifier ||
                  variable == platform.runtime.parent?.identifier ||
                  variable == platform.os.identifier ||
                  variable == platform.compiler.identifier =>
            true,
          'dart-vm' => platform.runtime.isDartVM,
          'browser' => platform.runtime.isBrowser,
          'js' => platform.runtime.isJS,
          'blink' => platform.runtime.isBlink,
          'posix' => platform.os.isPosix,
          'google' => platform.inGoogle,
          'wasm' => platform.runtime.isWasm,
          _ => false,
        });