ReferenceEqualityWrapper class final
Helper class for testing equality of wrapped Python objects. They are considered equal, if they are the same object in Python.
Constructors
-
ReferenceEqualityWrapper.new(PythonObjectInterface<
PythonFfiDelegate< _source)Object?> , Object?> -
Wraps the given
_source
object for testing equality.
Properties
-
finalizer
→ Finalizer<
(PythonFfiDelegate< Object?> , Object?)> -
The finalizer for the python object.
Gets invoked when the object is no longer accessible to the program.
finalinherited
- hashCode → int
-
The hash code for this object.
no setteroverride
-
initializer
→ Initializer<
PythonFfiDelegate< Object?> , Object?> -
The initializer for the python object.
Gets invoked at the start of the constructor.
finalinherited
-
platform
→ PythonFfiDelegate<
Object?> -
Gets the platform that this object is associated with.
no setterinherited
- reference → Object?
-
Gets the reference to the python object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
debugDump(
) → void -
Dumps the python object to the console.
inherited
-
getAttribute<
T extends Object?> (String attributeName) → T -
Gets the attribute with the given name.
inherited
-
getAttributeOrNull<
T extends Object?> (String attributeName) → T? -
Gets the attribute with the given name or null if it does not exist.
inherited
-
getAttributeRaw<
T extends PythonObjectInterface< (P, R> >String attributeName) → T -
Gets the attribute with the given name.
inherited
-
getFunction(
String name) → PythonFunctionInterface< PythonFfiDelegate< Object?> , Object?> -
Gets the function with the given name.
inherited
-
hasAttribute(
String attributeName) → bool -
Checks if the python object has the given attribute.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setAttribute<
T extends Object?> (String attributeName, T value) → void -
Sets the attribute with the given name.
inherited
-
setAttributeRaw<
T extends PythonObjectInterface< (P, R> >String attributeName, T value) → void -
Sets the attribute with the given name.
inherited
-
toDartObject(
) → Object? -
Converts the python object to a Dart object.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object? other) → bool -
The equality operator.
override