flutter_helper_utils library

Classes

Bidi
This provides utility methods for working with bidirectional text. All of the methods are static, and are organized into a class primarily to group them together for documentation and discoverability.
BidiFormatter
Bidi stands for Bi-directional text. According to Wikipedia: Bi-directional text is text containing text in both text directionalities, both right-to-left (RTL) and left-to-right (LTR). It generally involves text containing different types of alphabets, but may also refer to boustrophedon, which is changing text directionality in each row.
BoolNotifier
allows to quickly create a ValueNotifier of type bool.
BrightnessNotifier
ColorNotifier
allows to quickly create a ValueNotifier of type Color.
ConvertObject
A utility class for converting objects to different types.
DateFormat
DateFormat is for formatting and parsing dates in a locale-sensitive manner.
DatesHelper
DateTimeNotifier
create a ValueNotifier of type DateTime, which reacts just like normal DateTime, but with notifier capabilities.
DoubleNotifier
allows to quickly create a ValueNotifier of type double.
DurationNotifier
create a ValueNotifier of type Duration, which reacts just like normal Duration, but with notifier capabilities.
Intl
The Intl class provides a common entry point for internationalization related tasks. An Intl instance can be created for a particular locale and used to create a date format via anIntl.date(). Static methods on this class are also used in message formatting.
IntNotifier
allows to quickly create a ValueNotifier of type int.
ListNotifier<E>
create a ValueNotifier of type List
MapNotifier<K, V>
create a ValueNotifier of type Map<K, V>, which reacts just like normal Map, but with notifier capabilities.
NumberFormat
Provides the ability to format a number in a locale-specific way.
NumNotifier
allows to quickly create a ValueNotifier of type num.
SetNotifier<E>
create a ValueNotifier of type Set, which reacts just like normal Set, but with notifier capabilities.
StringNotifier
allows to quickly create a ValueNotifier of type String.
ThemeModeNotifier
TimeUtils
UriNotifier
create a ValueNotifier of type Uri, which reacts just like normal Uri, but with notifier capabilities.

Extensions

BrightnessNotifierEx on ValueNotifier<Brightness>
DHUArchiveMimeChecksExtensions on String?
DHUAudioMimeChecksExtensions on String?
DHUBidiStringExtensions on String
Provides extensions for String to support bidirectional text handling and manipulation.
DHUBidiTDExtensions on TextDirection?
Provides extensions for TextDirection to support bidirectional text formatting.
DHUBoolEx on bool
DHUBoolNullablelEx on bool?
DHUCaseConversionExtensions on String
DHUCollectionsExtensions on Iterable<E>
DHUCollectionsExtensionsNS on Iterable<E>?
DHUContactMimeChecksExtensions on String?
DHUDateExtensions on DateTime
DHUDateFormatExtension on DateTime
DHUDateFormatNStringExtension on String?
DHUDateFormatStringExtension on String
DHUDateNullString on String?
DHUDateString on String
DHUDocumentMimeChecksExtensions on String?
DHUDoubleExtensions on double
DHUDurationExt on Duration
DHUFontMimeChecksExtensions on String?
DHUHttpEx on num?
DHUImageMimeChecksExtensions on String?
DHUIntExtensions on int
DHUIntlExtensions on String
DHUIntlNumExtensions on num
DHUMapExt on Map<K, V>
DHUMapExtension on Map<K, V>
DHUMapNullableExtension on Map<K, V>?
DHUMimeChecksExtensions on String?
DHUNDateFormatExtension on DateTime?
DHUNullableDateExtensions on DateTime?
DHUNullableListExtensions on List<E>?
DHUNullableSetExt on Set<E>?
DHUNullSafeCaseConversionExtensions on String?
DHUNullSafeNumExtensions on num?
DHUNullSafeStringExtensions on String?
DHUNullSafeURIExtensions on String?
DHUNumberFormatExtensions on num
DHUNumberFormatNullableStringExtensions on String?
DHUNumberFormatStringExtensions on String
DHUNumExtensions on num
DHUObjectNullableExtensions on Object?
DHUProgrammingMimeChecksExtensions on String?
DHUStringExtensions on String
DHUUriEx on Uri
DHUURIExtensions on String
DHUVideoMimeChecksExtensions on String?
FHUAlignExtensions on Widget
FHUBoolNotifierEx on bool
BoolNotifierEx
FHUBoolValueNotifierExtension on ValueNotifier<bool>
BoolValueNotifierExtension
FHUBrightnessExtension on Brightness?
FHUBrightnessNotifierEx on Brightness
BrightnessNotifierEx
FHUColorExt on String
FHUColorNotifierEx on Color
ColorNotifierEx
FHUColorValueNotifierExtension on ValueListenable<Color>
Extension: ColorValueNotifierExtension
FHUDateTimeNotifierEx on DateTime
DateTimeNotifierEx
FHUDoubleNotifierEx on double
DoubleNotifierEx
FHUDoubleValueNotifierExtension on ValueListenable<double>
DoubleValueNotifierExtension
FHUFocusScopeExtension on BuildContext
FHUHexColor on Color
FHUIntNotifierEx on int
IntNotifierEx
FHUIntValueNotifierExtension on ValueListenable<int>
IntValueNotifierExtension
FHUListExtensions on List<Widget>
FHUListNotifierEx on List<E>
ListNotifierEx
FHUMapNotifierEx on Map<K, V>
MapNotifierEx<K, V>
FHUMediaQueryExtension on BuildContext
FHUNavigationStateExtensions on State<StatefulWidget>
FHUNavigationStatelessExtensions on StatelessWidget
FHUNavigatorExtension on BuildContext
FHUNullSafeStringExtensions on String?
FHUNumericValueNotifierExtension on ValueNotifier<num>
NumericValueNotifierExtension
FHUNumNotifierEx on num
NumNotifierEx
FHUOrientationEx on Orientation
FHUPaddingExtensions on Widget
FHUPlatformExtension on BuildContext
FHUPlatformExtensionNullable on BuildContext?
FHUScaffoldMessengerExtension on BuildContext
FHUSetNotifierEx on Set<E>
SetNotifierEx
FHUStreamToValueNotifier on Stream<T>
Extension on Stream<T> to convert any stream into a ValueNotifier<T>.
FHUStringNotifierEx on String
StringNotifierEx
FHUTargetPlatformExtension on TargetPlatform?
FHUThemeDataExtension on ThemeData
FHUThemeExtension on BuildContext
FHUThemeModeEx on ThemeMode?
FHUThemeModeNotifierEx on ThemeMode
ThemeModeNotifierEx
FHUUriNotifierEx on Uri
UriNotifierEx
FHUValueListenableExtension on ValueListenable<T>
Extension on ValueListenable to seamlessly create a ValueListenableBuilder widget.
FHUValueListenableExtensions on ValueListenable<T>
FHUValueNotifierExtension on T
extension on T where T is any non-nullable Object, Its used to directly make ValueNotifier instance from that T.
FHUValueNotifierExtensions on ValueNotifier<T>
IntlMapExtension on Map<Object, T>
Provides extensions for Map<Object, T> to support internationalization (i18n) message formatting.
IntlMapStringExtension on Map<Object, String>
Provides extensions for Map<Object, String> to support internationalization (i18n) message formatting.
NumberToDateNames on num
ThemeModeNotifierEx on ValueNotifier<ThemeMode>

Constants

textDirectionLTR → const TextDirection
textDirectionRTL → const TextDirection
textDirectionUNKNOWN → const TextDirection

Functions

isEqual(dynamic a, dynamic b) bool
isTypePrimitive<T>() bool
isValuePrimitive(dynamic value) bool
Determines whether a given value is of a primitive type for JSON serialization.
toBigInt(dynamic object, {Object? mapKey, int? listIndex}) BigInt
Converts an object to a BigInt. mirroring the same static method in the ConvertObject, providing alternative easy less code usage options.
toBool(dynamic object, {Object? mapKey, int? listIndex}) bool
Converts an object to a bool. mirroring the same static method in the ConvertObject, providing alternative easy less code usage options.
toDateTime(dynamic object, {dynamic mapKey, int? listIndex, String? format, String? locale, bool autoDetectFormat = false, bool useCurrentLocale = false, bool utc = false}) DateTime
Attempts to convert an object to a bool, or returns null if the object is null or conversion is not applicable. mirroring the same static method in the ConvertObject, providing alternative easy less code usage options.
toDouble(dynamic object, {Object? mapKey, int? listIndex, String? format, String? locale}) double
Converts an object to a double. mirroring the same static method in the ConvertObject, providing alternative easy less code usage options.
toInt(dynamic object, {Object? mapKey, int? listIndex, String? format, String? locale}) int
Converts an object to an int. mirroring the same static method in the ConvertObject, providing alternative easy less code usage options.
toList<T>(dynamic object, {Object? mapKey, int? listIndex}) List<T>
Converts an object to a List of type T. mirroring the same static method in the ConvertObject, providing alternative easy less code usage options.
toMap<K, V>(dynamic object, {Object? mapKey, int? listIndex}) Map<K, V>
Converts an object to a Map with keys of type K and values of type V. mirroring the same static method in the ConvertObject, providing alternative easy less code usage options.
toNum(dynamic object, {Object? mapKey, int? listIndex, String? format, String? locale}) num
Converts an object to a num. mirroring the same static method in the ConvertObject, providing alternative easy less code usage options.
toSet<T>(dynamic object, {Object? mapKey, int? listIndex}) Set<T>
Converts an object to a Set of type T. mirroring the same static method in the ConvertObject, providing alternative easy less code usage options.
toString1(dynamic object, {Object? mapKey, int? listIndex}) String
Converts any object to a string if the object is not null. mirroring the same static method in the ConvertObject, providing alternative easy less code usage options.
toType<T>(dynamic object) → T
Global function that allow Convert an object to a specified type.
toUri(dynamic object, {Object? mapKey, int? listIndex}) Uri
Converts an object to a Uri. mirroring the same static method in the ConvertObject, providing alternative easy less code usage options.
tryToBigInt(dynamic object, {Object? mapKey, int? listIndex}) BigInt?
Attempts to convert an object to a BigInt, or returns null if the object is null or conversion fails. mirroring the same static method in the ConvertObject, providing alternative easy less code usage options.
tryToBool(dynamic object, {Object? mapKey, int? listIndex}) bool?
Attempts to convert an object to a bool, or returns null if the object is null or conversion is not applicable. mirroring the same static method in the ConvertObject, providing alternative easy less code usage options.
tryToDateTime(dynamic object, {dynamic mapKey, int? listIndex, String? format, String? locale, bool autoDetectFormat = false, bool useCurrentLocale = false, bool utc = false}) DateTime?
Attempts to convert an object to a DateTime, or returns null if the object is null or conversion fails. mirroring the same static method in the ConvertObject, providing alternative easy less code usage options.
tryToDouble(dynamic object, {Object? mapKey, int? listIndex, String? format, String? locale}) double?
Attempts to convert an object to a double, or returns null if the object is null or conversion fails. mirroring the same static method in the ConvertObject, providing alternative easy less code usage options.
tryToInt(dynamic object, {Object? mapKey, int? listIndex, String? format, String? locale}) int?
Attempts to convert an object to an int, or returns null if the object is null or conversion fails. mirroring the same static method in the ConvertObject, providing alternative easy less code usage options.
tryToList<T>(dynamic object, {Object? mapKey, int? listIndex}) List<T>?
Attempts to convert an object to a List of type T, or returns null if conversion is not possible. mirroring the same static method in the ConvertObject, providing alternative easy less code usage options.
tryToMap<K, V>(dynamic object, {Object? mapKey, int? listIndex}) Map<K, V>?
Attempts to convert an object to a Map with keys of type K and values of type V. mirroring the same static method in the ConvertObject, providing alternative easy less code usage options.
tryToNum(dynamic object, {Object? mapKey, int? listIndex, String? format, String? locale}) num?
Attempts to convert an object to a num, or returns null if the object is null or conversion fails. mirroring the same static method in the ConvertObject, providing alternative easy less code usage options.
tryToSet<T>(dynamic object, {Object? mapKey, int? listIndex}) Set<T>?
Attempts to convert an object to a Set of type T, or returns null if conversion is not possible. mirroring the same static method in the ConvertObject, providing alternative easy less code usage options.
tryToString(dynamic object, {Object? mapKey, int? listIndex}) String?
Converts any object to a string, or returns null if the object is null. mirroring the same static method in the ConvertObject, providing alternative easy less code usage options.
tryToType<T>(dynamic object) → T?
Global function that allow Convert an object to a specified type or return null.
tryToUri(dynamic object, {Object? mapKey, int? listIndex}) Uri?
Attempts to convert an object to a Uri, or returns null if the object is null or conversion fails. mirroring the same static method in the ConvertObject, providing alternative easy less code usage options.

Typedefs

IndexedPredicate<T> = bool Function(int index, T)
Predicate<T> = bool Function(T)