Hit | Total | Coverage | |
---|---|---|---|
Lines | 0 | 3 | 0.0% |
Functions | 0 | 0 | - |
Branches | 0 | 0 | - |
Line | Branch | Hits | Source code |
---|---|---|---|
1 | final class TargetPlatform { |
||
2 | static const vm = 1; |
||
3 | static const js = 2; |
||
4 | static const wasm = 4; |
||
5 |
|
||
6 | static const web = js | wasm; |
||
7 | static const all = vm | js | wasm; |
||
8 | } |
||
9 |
|
||
10 | extension TargetPlatformExt on int { |
||
11 | 0 | bool get hasVm => (this & TargetPlatform.vm) != 0; |
|
12 | 0 | bool get hasJs => (this & TargetPlatform.js) != 0; |
|
13 | 0 | bool get hasWasm => (this & TargetPlatform.wasm) != 0; |
|
14 | } |