Skip to content
pubscout

extension_utils

2.0.1, released 2 weeks ago by nbhatt.com.np

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

WASM-ready
$ flutter pub add extension_utils
Source repository

What it does

Provides practical extensions and helper methods for standard Dart and Flutter types like String, List, Map, num, DateTime, Duration, and Color. It includes safe-access methods, common formatting, parsing utilities, and Kotlin-style scope functions.

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

Use it when

  • You want a single utility library for common string manipulation, list operations, and date arithmetic.
  • You want Kotlin-style scope functions like let, also, and takeIf in Dart.

Skip it when

  • You prefer to keep your dependency tree minimal and only write your own tiny extension helpers.
  • You are concerned about namespace pollution from adding a broad set of type extensions.

Strengths

  • Comprehensive coverage across many standard data types and Flutter classes.
  • Includes helpful built-in regex patterns and safe-access methods for collections.

Weaknesses

  • Adds general extensions to core Dart types which can occasionally conflict with other utility packages.
  • Requires Flutter >= 3.29.0 / Dart 3.7.0.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0
import 'package:extension_utils/extension_utils.dart';

final camel = 'hello world'.toCamelCase();
final isEmail = 'user@example.com'.isEmail();
final secondItem = [1, 2, 3].second;

Alternatives

Packages that do the same job and could replace extension_utils.