Search packages, repositories and app categories

Package detailsv3.4.2

swiss_knife

Dart Useful Tools - collections, math, date, uri, json, events, resources, regexp, etc...

AndroidiOSWebmacOSWindowsLinux
30-day downloads
9K
Likes
18
Pub points
160

Install package

flutter pub add swiss_knife

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

Swiss_Knife is a Dart utility package offering a wide range of helpful tools for common development tasks. It provides extensions and utilities for collections, math operations, date handling, URI manipulation, JSON processing, event management, resource loading, and regular expressions. Designed to simplify everyday coding challenges, it enhances productivity by reducing boilerplate code. The package is lightweight and well-suited for projects requiring versatile, reusable Dart helpers across multiple platforms.

Use cases

  • Quick collection transformations
  • Date and time formatting
  • JSON parsing and serialization
  • URI and string manipulation
  • Event-driven programming
  • Regular expression utilities

Key features

  • Extensive utility extensions
  • Cross-platform compatibility
  • Lightweight and modular
  • Built-in support for common data types
  • Easy integration with Flutter apps
  • Clean, readable API design

Suitable for

  • Flutter developers seeking convenience tools
  • Projects needing frequent data manipulation
  • Teams wanting consistent utility patterns
  • Prototyping and rapid development
  • Apps targeting multiple platforms

Considerations

  • May include unused utilities if not fully needed
  • Best used when minimal dependencies are preferred
  • Not intended for complex business logic
  • Requires careful review of included extensions
  • Not a replacement for specialized libraries in niche areas

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

Swiss Knife

pub package Null Safety Dart CI GitHub Tag New Commits Last Commits Pull Requests Code size License FOSSA Status

Dart Useful Tools:

  • collections
  • data
  • date
  • events
  • io
  • json
  • loader
  • math
  • regexp
  • resources
  • string
  • uri

and more...

API

See Swiss Knife API documentation for full functionalities.

Usage

A simple EventStream usage example:

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") ;
  });

}

Features and bugs

Please file feature requests and bugs at the issue tracker.

Author

Graciliano M. Passos: gmpassos@GitHub.

License

Dart free & open-source license.

FOSSA Status

Categories

Dependencies

Dependency list 2 items

  • intl^0.20.3
  • resource_portable^3.1.4

Source repository

Projects using this package