Last updated:
0 purchases
ext utils
ExtUtils is a simple Flutter package desiged to implement helpful utilities to make the development process quicker and easier.
It adds extra methods to data types which can be useful when writing your programs/apps.
β
Features #
π€ Strings
isNullOrEmpty()
equalsIgnoreCase()
capitalizeFirst()
capitalizeFirstEach()
includes()
includesIgnoreCase()
isNumeric()
isEmail()
isUrl()
isPhoneNumber()
removeWhitespace()
reverse()
toCamelCase()
toSnakeCase()
toSnakeCase()
toDate()
toDateWithTime()
toTime()
π’ Numbers (int & doubles)
roundToNearestMultiple(int multipleOf)
floorToNearestMultiple(int multipleOf)
percentOf(num total)
percentOfAsString(num total)
#οΈβ£ Doubles
isEven()
isOdd()
toCurrencyString({String symbol = '$', int decimalPlaces = 2})
toCurrency()
πΊοΈ Map
isNullOrEmpty()
invert()
mapValues<K, V>(V Function(V) transform)
mapKeys<K, V>(V Function(V) transform)
merge<K, V>(Map<K, V> other, {bool? keepFirst})
addEntry({required key, required value})
removeEntry(key)
get(K key, {V? defaultValue})
ποΈ List
isNullOrEmpty()
chunk
distinct
flatten
median
average()
sum
range
ποΈ DateTime
isToday()
isYesterday()
isTomorrow()
isPast()
isFuture()
isSameYear(DateTime date)
isSameMonth(DateTime date)
isSameDay(DateTime date)
isWeekend()
isWeekday()
startOfDay()
endOfDay()
toReadableDate({bool? includeYear, bool? shortMonth})
toReadableDateWithTime({bool? includeYear, bool? shortMonth})
toReadableTime()
nextDay()
previousDay()
nextMonth()
previousMonth()
monthString()
dayOfWeekString()
nextMonthString()
previousMonthString()
π Getting started #
To use this package, add ExtUtils as a dependency in your pubspec.yaml file.
dependencies:
ext_utils: ^1.0.0
copied to clipboard
Import the package
import 'package:ext_utils/ext_utils.dart';
copied to clipboard
βΉοΈ Additional information #
πͺ Feature request?
Have an idea to make this package even better? Tell us on the ExtUtils discussion page (GitHub)
πͺ² Found a bug?
Please report all bugs or issues on the ExtUtils issues page (GitHub)
We encourage you to report anything package related to the GitHub repository pages as any and all input will help make this package even better in future versions!
π Support #
Enjoying this package? Consider supporting my work. Your contributions will allow me to keep creating and sharing valuable content and innovative projects.
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.