ext_utils 1.0.1
ExtUtils is a Flutter package desiged to implement helpful utilities to make the development process quicker and easier.
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
(int size) -
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
Import the package
import 'package:ext_utils/ext_utils.dart';
ℹ️ 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.
