Skip to content

Dart extension mostly inspired from languages like Kotlin, Python, etc for easing operations usually on default types.

License

Notifications You must be signed in to change notification settings

RaghavTheGreat1/extension_utilities

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A library of extension utils on existing dart core.

Features

- String:

- .isInt
- .toInt()
- .tryToInt()
- .isDouble
- .toDouble()
- .tryToDouble()
- .isBool
- .toBool()
- .tryToBool()

- .containsOnlyNumbers
- .containsOnlyAlphabets
- .containsOnlyAlphabetsAndSpace

- .capitalize()
- .capitalizeAllWords()

- List:

- .random()
- .randomOrNull()
- .get()
- .set()

- Num:

- .toFixed()


- .microseconds
- .ms
- .milliseconds
- .s
- .seconds
- .mins
- .minutes
- .hrs
- .hours
- .days

Getting started

In your flutter/dart project add the dependency:

extension_utilities:

Import the package

import 'package:extension_utilities/extension_utilities.dart';

final fruits = ["mango", "banana", "orange"];
print(fruits.random());

About

Dart extension mostly inspired from languages like Kotlin, Python, etc for easing operations usually on default types.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages