How to use Dart FFI and create a CLI App? Hmm…
Level: Intermediate
We will cover briefly about
Using Dart FFI
Fetch login history of a user (macOS)
Create a CLI App
Using Dart FFI
FFI: (Foreign Function Interface) can be used to call the C/C++ language-based APIs
Dart FFI and CLI App
A statically linked library is embedded into the app’s executable image and is loaded when the app starts.
Symbols from a statically linked library can be loaded using DynamicLibrary.executable
or DynamicLibrary.process
.
A dynamically linked library is distributed in a separate file or folder within the app and loaded on-demand. A dynamically linked library can be loaded into Dart via DynamicLibrary.open
.
#dart #flutter #programming