How to use Dart FFI and create a CLI App? Hmm…

Begin…

Level: Intermediate

We will cover briefly about

  1. Using Dart FFI

  2. Fetch login history of a user (macOS)

  3. Create a CLI App

  4. Using Dart FFI
    FFI: (Foreign Function Interface) can be used to call the C/C++ language-based APIs

Image for post

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

Dart FFI and CLI App
1.60 GEEK