Skip to content
pubscout

swiss_knife

3.4.2, released 2 weeks ago by an unverified publisher

Collection of Dart utility tools for collections, math, date, URI, JSON, events, and resources.

WASM-ready
$ flutter pub add swiss_knife
Source repository

What it does

Provides general-purpose Dart helper utilities including collections, math, date, IO, JSON parsing, event streams, MIME types, and URI handling.

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

Use it when

  • You need helper functions for collections, math, and date manipulation.
  • You want a lightweight event stream system for notifications.

Skip it when

  • You only need standard core library features.
  • You require a specialized package for complex tasks like cryptography or advanced date manipulation.

Strengths

  • Comprehensive collection of utility functions in a single package.
  • Includes helpful structures like EventStream.

Weaknesses

  • Broad scope can pull in unnecessary utility functions.
  • Limited documentation on individual utility methods.

Setup

Kind
Pure Dart
Effort
Low
Code generation
No
Direct dependencies
2
import 'package:swiss_knife/swiss_knife.dart';

class User {
  final EventStream<String> onNotification = new EventStream();

  void notify(String msg) {
    onNotification.add(msg);
  }
}

void main() {
  User user = new User();
  user.onNotification.listen((msg) {
    print("NOTIFICATION> $msg");
  });
}

Alternatives

Packages that do the same job and could replace swiss_knife.

  • json_schema

    Validate JSON data against JSON Schema drafts in Dart.

  • snowplow_tracker

    Flutter package for sending Snowplow analytics events on Android, iOS, and Web.

  • cli_tools

    Utilities for building command‑line interfaces, including argument parsing, analytics, and progress reporting.

  • extension_utils

    Dart and Flutter extension library for strings, collections, dates, numbers, and colors.

Works with

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