ObjInfo constructor

ObjInfo(
  1. PythonObjectInterface<PythonFfiDelegate<Object?>, Object?>? source
)

Creates a new instance of ObjInfo from a Python object.

Implementation

factory ObjInfo(
  PythonObjectInterface<PythonFfiDelegate<Object?>, Object?>? source,
) =>
    ObjInfo._(
      name: source?.getAttributeOrNull("__name__"),
      qualname: source?.getAttributeOrNull("__qualname__"),
      module: source?.getAttributeOrNull("__module__"),
    );