isPythonInitialized property

bool get isPythonInitialized

True if libdart_bridge has already brought up an embedded CPython. On Android process reuse (OS keeps the process alive across a Dart VM restart), this returns true on the second Dart VM's PythonBridge construction.

Returns false when running against a pre-1.3.0 libdart_bridge that doesn't export the underlying C function — callers should treat that as "fresh start path", which is the correct behaviour on every platform that hasn't seen this binary update yet.

Implementation

bool get isPythonInitialized {
  final f = _isPythonInitialized;
  if (f == null) return false;
  return f() != 0;
}