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
Creates a DynamicLibrary containing all the symbols of the running
- DynamicLibrary.open(String path)
Loads a library file and provides access to its symbols.
Creates a DynamicLibrary holding all global symbols.
The opaque handle to the dynamic library.
- hashCode → int
The hash code for a DynamicLibrary only depends on the loaded library.
- runtimeType → Type
A representation of the runtime type of the object.
T extends NativeType>( String symbolName) → Pointer< T>
- Looks up a symbol in the DynamicLibrary and returns its address in memory.
Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
String symbolName) → bool
- Checks whether this dynamic library provides a symbol with the given name.
) → String
A string representation of this object.
Object other) → bool
Dynamic libraries are equal if they load the same library.