PythonService class
A service that provides platform-specific Python execution capabilities.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getPythonVersion(
) → Future< String?> - Gets the Python version from the platform-specific implementation if available, otherwise falls back to the generic approach.
-
installPythonPackage(
String packageName) → Future< PythonResult> - Installs a Python package using platform-specific implementations if available, otherwise falls back to the generic approach.
-
invokeMethod(
String method, [Map< String, dynamic> ? arguments]) → Future - Invokes a method on the platform channel.
-
isPythonAvailable(
) → Future< bool> - Checks if Python is available on the platform.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
runPythonCode(
String pythonCode) → Future< PythonResult> - Runs Python code using platform-specific implementations if available, otherwise falls back to the generic executor.
-
runPythonScript(
String scriptPath) → Future< PythonResult> - Runs a Python script file using platform-specific implementations if available, otherwise falls back to the generic executor.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited