Skip to content
pubscout

super_string

1.0.3, released 5 years ago by an unverified publisher

Provides common string manipulation and validation extension methods.

WASM-readySingle maintainer
$ flutter pub add super_string
Source repository

What it does

Extends the Dart String class with utilities like case checking, casing transformations, character indexing, word wrapping, and substring containment checks inspired by other programming languages.

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

Use it when

  • You need helper methods for string validation like isAlpha or isInteger.
  • You want convenient methods for capitalizing, swapping case, or converting strings to camelCase and title case.
  • You need to perform word wrapping or check if a string contains all or any items from a list.

Skip it when

  • You only require standard Dart core string operations.
  • You need complex localization or internationalization parsing.

Strengths

  • Adds a comprehensive collection of missing utility methods to the core String class.
  • Zero dependencies and lightweight.
  • Simple API with straightforward extension methods.

Weaknesses

  • Limited to string operations and lacks advanced text processing or templating features.
  • No built-in localization awareness for string transformations.

Setup

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

void main() {
  print('THIS'.isUpperCase); // => true
  print('this'.capitalize()); // => 'This'
  print('hello world'.toCamelCase()); // => 'HelloWorld'
}

Alternatives

Packages that do the same job and could replace super_string.

  • validators2

    String validation and sanitization for Dart.

  • cel

    Parses and evaluates Common Expression Language (CEL) expressions in Dart.

  • random_name_generator

    Generate random names and surnames based on common names in various global zones.

  • dartx

    Collection of useful static extension methods for Dart core types.

Works with

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