A library of extension utils on existing dart core.
- .isInt
- .toInt()
- .tryToInt()
- .isDouble
- .toDouble()
- .tryToDouble()
- .isBool
- .toBool()
- .tryToBool()
- .containsOnlyNumbers
- .containsOnlyAlphabets
- .containsOnlyAlphabetsAndSpace
- .capitalize()
- .capitalizeAllWords()
- .random()
- .randomOrNull()
- .get()
- .set()
- .toFixed()
- .microseconds
- .ms
- .milliseconds
- .s
- .seconds
- .mins
- .minutes
- .hrs
- .hours
- .days
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());