TF-2280 Call BackgroundIsolateBinaryMessenger.ensureInitialized on cross-platform
Signed-off-by: dab246 <tdvu@linagora.com> (cherry picked from commit c2bcbd604f3a6ea96288253efc527be51ad6d178)
This commit is contained in:
+4
@@ -0,0 +1,4 @@
|
||||
|
||||
export 'background_isolate_binary_messenger_web.dart'
|
||||
if (dart.library.html) 'background_isolate_binary_messenger_web.dart' // Browser
|
||||
if (dart.library.io) 'background_isolate_binary_messenger_mobile.dart'; // VM
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
|
||||
export 'package:flutter/services.dart';
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
|
||||
class RootIsolateToken {
|
||||
static final RootIsolateToken? instance = () {}();
|
||||
}
|
||||
|
||||
class BackgroundIsolateBinaryMessenger {
|
||||
static void ensureInitialized(RootIsolateToken token) {}
|
||||
}
|
||||
Reference in New Issue
Block a user