1 | | | import 'dart:async'; |
2 | | |
|
3 | | | import '_impl/xplat/_typedefs.dart' |
4 | | | if (dart.library.io) '_impl/native/_typedefs.dart' |
5 | | | if (dart.library.html) '_impl/web/_typedefs.dart' |
6 | | | if (dart.library.js_interop) '_impl/web/_typedefs.dart' as impl; |
7 | | |
|
8 | | 12 | final threadId = impl.threadId; |
9 | | |
|
10 | | | typedef EntryPoint = impl.EntryPoint; |
11 | | | typedef PlatformChannel = impl.PlatformChannel; |
12 | | | typedef PlatformThread = impl.PlatformThread; |
13 | | |
|
14 | | | typedef PlatformThreadHook = FutureOr<void> Function(PlatformThread); |
15 | | |
|
16 | | | extension HexExt on int { |
17 | | 15 | String get hex => '0x${toRadixString(16).padLeft(8, '0')}'; |
18 | | | } |