DynamicLibrary.open constructor

DynamicLibrary.open(
  1. String name
)

Loads a dynamic library file with local visibility.

Throws an ArgumentError if loading the dynamic library fails.

Calling this function multiple times, even in different isolates, returns objects which are equal but not identical. The underlying library is only loaded once into the DartVM by the OS.

Implementation

external factory DynamicLibrary.open(String name);

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.13.0/dart-ffi/DynamicLibrary/DynamicLibrary.open.html