Skip to content
pubscout

utility

1.0.3, released 4 years ago by justkawal.dev

Utility helpers for Dart lists, strings, and numbers.

WASM-ready
$ flutter pub add utility
Source repository

What it does

Provides a collection of extension methods and functions for Dart to perform common list operations, string manipulations, and number calculations more easily.

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

Use it when

  • You need convenient helper methods for lists like chunking, flattening, or slicing.
  • You want quick string case conversions, padding, and validation helpers.
  • You need basic number operations and bitwise mimic helpers in Dart.

Skip it when

  • You only need standard library utilities and want to avoid adding extra dependencies.
  • You require advanced reactive data streams or complex state management tools.

Strengths

  • Rich set of string case conversion and validation methods.
  • Helpful list manipulation utilities like flattening, chunking, and dropping elements.
  • Simple extension-based API.

Weaknesses

  • Minimal documentation outside of the README examples.
  • Very small scope of utility features.

Setup

Kind
Pure Dart
Effort
Low
Code generation
No
Direct dependencies
0
var list = [1, 2, 3, 4];
list.slice(2); // [3, 4]

'justkawal'.capitalize; // Justkawal

Alternatives

Packages that do the same job and could replace utility.

  • gtk

    GTK utilities for Flutter Linux applications, providing settings and application lifecycle helpers.

  • flutter_flavorizr

    A utility to easily create and configure application flavors in Flutter.

  • techgrains

    Developer-friendly Flutter library with utilities, storage, networking, and localization helpers.