Skip to content

Latest commit

 

History

History
82 lines (55 loc) · 1.44 KB

README.md

File metadata and controls

82 lines (55 loc) · 1.44 KB

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());