Skip to content
pubscout

nm

0.6.0, released 8 weeks ago by canonical.com

Client for interacting with Linux NetworkManager via D-Bus

$ flutter pub add nm
Source repository

What it does

Provides a Dart API to connect, query, and control NetworkManager services on Linux. It exposes methods to activate/deactivate connections, listen to state changes, and retrieve device information.

AI-written summary of version 0.6.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to manage network connections programmatically on Linux
  • You want to monitor NetworkManager state in a Dart/Flutter desktop app

Skip it when

  • You target non‑Linux platforms
  • You need a high‑level HTTP client or REST API

Strengths

  • Pure Dart, no native code
  • Supports async D‑Bus calls
  • Provides detailed connection and device models
  • Active test coverage

Weaknesses

  • Linux only
  • Requires D‑Bus service running
  • No built‑in UI widgets
  • Limited to NetworkManager API

Setup

Kind
Pure Dart
Effort
Low
Code generation
No
Direct dependencies
1

Add dependency, import package, create NetworkManagerClient, call connect()

import 'package:nm/nm.dart';

var client = NetworkManagerClient();
await client.connect();
print('Running NetworkManager ${client.version}');
await client.close();

Alternatives

Packages that do the same job and could replace nm.

  • stream_chat

    Low‑level Dart client for Stream Chat API

  • vexana

    Manage your network layer with dio, offering dynamic model parsing, caching, and refresh tokens.

  • http2

    An HTTP/2 implementation in Dart for low-level transport and pooled HTTP/2 requests.

  • talker_dio_logger

    A lightweight, customizable logger for Dio HTTP client built on Talker.

Works with

Packages commonly used together with nm: ones it builds on, ones built on it, and its own family.