utility_extension 1.1.0 copy "utility_extension: ^1.1.0" to clipboard
utility_extension: ^1.1.0 copied to clipboard

outdated

Various extension for Dart

Utility Extension #

Provides useful extensions for primitive data types.
More information, check Api reference or Github

Getting started #

import package #

import 'package:utility_extension/utility_extension.dart

Features #

List #

List<List<T>> devideInto(int each);
Iterable<T> mapWithIndex(T Function(int index, T e) toElement);

String #

String get snakeCase
String get constantCase
String get camelCase
Iterable<Type> map<Type>(Type Function(String e) toElement)
Iterable<Type> mapWithIndex<Type>(Type Function(int index, String e)

Usage #

TODO: Include short and useful examples for package users. Add longer examples to /example folder.

List<int> list = [1,2,3,4,5];
print(list.devideInto(2))   // output : [[1,2],[3,4],[5]]

String str = 'utility extension';
print(str.camelCase);    // output : utilityExtension

Additional information #

More features will be added in the future.

3
likes
0
points
0
downloads

Publisher

unverified uploader

Weekly Downloads

Various extension for Dart

Repository (GitHub)
View/report issues

License

unknown (license)

More

Packages that depend on utility_extension