evaluate method
- 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.compiler.isJS,
'blink' => platform.runtime.isBlink,
'posix' => platform.os.isPosix,
'google' => platform.inGoogle,
'wasm' => platform.compiler.isWasm,
_ => false,
});