PythonResult class
Represents the result of a Python code execution.
Constructors
- PythonResult.new({required bool success, String? output, String? error, dynamic returnValue})
-
Creates a new PythonResult instance.
const
- PythonResult.failure({String? error, String? output})
-
Creates a failed result.
factory
- PythonResult.success({String? output, dynamic returnValue})
-
Creates a successful result.
factory
Properties
- error → String?
-
Any error message if the execution failed
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- output → String?
-
The output of the Python code execution
final
- returnValue → dynamic
-
Any returned value from the Python code
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- success → bool
-
Whether the execution was successful
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited