ensureInitialized static method
void
ensureInitialized()
Initializes DartApiDL used for Continuations and interface implementation.
Implementation
static void ensureInitialized() {
if (!_initialized) {
assert(NativeApi.majorVersion == 2);
assert(NativeApi.minorVersion >= 3);
final result = Jni._bindings.InitDartApiDL(NativeApi.initializeApiDLData);
_initialized = result == 0;
assert(_initialized);
}
}