service: Make the entrypoint a VM entrypoint
Should help with Flutter optimizing the function away.
Based on
6c353dd4fc
.
This commit is contained in:
parent
9171f42d09
commit
c52bdbecf8
@ -147,6 +147,7 @@ Future<void> initUDPLogger() async {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// The entrypoint for all platforms after the platform specific initilization is done.
|
/// The entrypoint for all platforms after the platform specific initilization is done.
|
||||||
|
@pragma('vm:entry-point')
|
||||||
Future<void> entrypoint() async {
|
Future<void> entrypoint() async {
|
||||||
// Register the lock
|
// Register the lock
|
||||||
GetIt.I.registerSingleton<Completer<void>>(Completer());
|
GetIt.I.registerSingleton<Completer<void>>(Completer());
|
||||||
|
Loading…
Reference in New Issue
Block a user