DynamicLibrary class Null safety

A dynamically loaded native library.

A dynamically loaded library is a mapping from symbols to memory addresses. These memory addresses can be accessed through lookup.

Available Extensions

Constructors

DynamicLibrary.executable()
Creates a dynamic library containing all the symbols of the running executable.
factory
DynamicLibrary.open(String path)
Loads a library file and provides access to its symbols. [...]
factory
DynamicLibrary.process()
Creates a dynamic library holding all global symbols. [...]
factory

Properties

handle Pointer<Void>
The opaque handle to the dynamic library. [...]
read-only
hashCode int
The hash code for a DynamicLibrary only depends on the loaded library.
read-only, override
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

lookup<T extends NativeType>(String symbolName) Pointer<T>
Looks up a symbol in the DynamicLibrary and returns its address in memory. [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
providesSymbol(String symbolName) bool
Checks whether this dynamic library provides a symbol with the given name.
@Since('2.14')
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
Dynamic libraries are equal if they load the same library.
override