ext_utils

Last updated:

0 purchases

ext_utils Image
ext_utils Images
Add to Cart

Description:

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.

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.