string_ext

Creator: coderz1093

Last updated:

0 purchases

string_ext Image
string_ext Images

Languages

Categories

Add to Cart

Description:

string ext

string_ext #



Dart extension methods for a String.
Usage #
To use this plugin, add string_ext as a dependency in your pubspec.yaml file.
Than add import 'package:string_ext/string_ext.dart'; to the file for use extension methods.
Example #
import 'package:string_ext/string_ext.dart';

void main() {
final foo = 'john';
final bar = foo.firstToUpper();
print('Name: $bar');
// Output: Name: John
}
copied to clipboard
Methods classifier #
Common #
Equality

isNullOrEmpty/isNotNullNorEmpty - check for a null or empty.

Modification #
Case

firstToUpper()/firstToLower() - converts first character in the string to upper/lower case.

Transformation #
To Iterable

chunks() - splits string by chunk with defined size.

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.