flutter_helper_utils
library
Classes
-
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.
-
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.
-
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.
-
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.
Functions
-
isEqual<T>(T value1, T value2)
→ bool
-
-
isPrimitiveType(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, {Object? mapKey, int? listIndex, String? format})
→ 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})
→ 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})
→ 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})
→ 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, {Object? mapKey, int? listIndex, String? format})
→ 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})
→ 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})
→ 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})
→ 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.