evalAsObject static method
Future<PyObjectWrapper>
evalAsObject({
- required String code,
- List<
(String, PyArgument)> ? globals, - List<
(String, PyArgument)> ? locals,
计算表达式并返回一个通用对象句柄 (PyObjectWrapper) 这允许 Dart 持有这个对象,并在随后调用它的方法
Implementation
static Future<PyObjectWrapper> evalAsObject(
{required String code,
List<(String, PyArgument)>? globals,
List<(String, PyArgument)>? locals}) =>
RustLib.instance.api.crateApiPythonPythonUtilityEvalAsObject(
code: code, globals: globals, locals: locals);