super_string 1.0.0-nullsafety.0 copy "super_string: ^1.0.0-nullsafety.0" to clipboard
super_string: ^1.0.0-nullsafety.0 copied to clipboard

outdated

Dart's extension methods for String.

Super String #

Dart's extension methods for String.

Example: #

import 'package:super_string/super_string.dart';

void main() {
  print('THIS'.isUpperCase()); // => true
  print('this'.isLowerCase()); // => true
  print('This123'.isAlNum()); // => true
  print('This'.isAlpha()); // => true
  print('123'.isInteger()); // => true
  print('123This'.isIdentifier()); // => false
  print('This_123'.isIdentifier()); // => true
  print('tHiS iS tiTle'.title()); // => 'This Is Title'
  print('tHiS'.swapcase()); // => 'ThIs'
  print('This'.charAt(0)); // => 'T'
  print('this'.similarity('THis')); // => 2
  print('this'.capitalize()); // => 'This'
  print('this'.center(7,'0')); // => '00this0'
  print('this'.count('t')); // => 1
  print('a\ta'.expandTabs(2)); // => 'a a'
}
13
likes
0
pub points
77%
popularity

Publisher

unverified uploader

Dart's extension methods for String.

Repository (GitHub)
View/report issues

License

unknown (license)

More

Packages that depend on super_string