dartx library Null safety

Superpowers for Dart. Collection of useful static extension methods.

Classes

CharacterRange
A range of characters of a Characters. [...]
Characters
The characters of a string. [...]
ComparableRange<T extends Comparable<T>>
Represents a range of Comparable values such as String or DateTime [...]
DoubleRange
IntProgression
IntRange
A iterable range between two ints which is iterable with a specific step size [...]
Pair<A, B>
Represents a generic pair of two values. [...]
Range<T extends Comparable>
Represents a range of values (for example, numbers or characters) with a fixed start value and a fixed endInclusive value. [...]
SortedList<E>

Extensions

ComparableBetweenExtension
ComparableBiggerEqualsExtension
ComparableBiggerExtension
ComparableCoerceAtLeastExtension
ComparableCoerceAtMostExtension
ComparableCoerceInExtension
ComparableInRangeExtension
ComparableRangeX
ComparableSmallerEqualsExtension
ComparableSmallerExtension
Provides comparison operators for Comparable types.
CompararatorComposeExtensions
CompararatorReverseExtensions
DateTimeTimeExtension
DoubleRangeToExtension
Special variant for double which implements Comparable<num> and therefore doesn't work for the Comparable<T>.rangeTo(T) extension [...]
DoubleToBytesExtension
DurationTimeExtension
Function1InvokeExtensions
Function1PartialExtensions
Function2CurryExtension
Function2FlipExtension
Function2InvokeExtension
Function2Partial2Extension
Function2PartialExtension
Function2UncurryExtension
Function3CurryExtension
Function3InvokeExtension
Function3Partial2Extension
Function3Partial3Extension
Function3PartialExtension
Function3UncurryExtension
Function4CurryExtension
Function4InvokeExtension
Function4Partial2Extension
Function4Partial3Extension
Function4Partial4Extension
Function4PartialExtension
Function4UncurryExtension
InterableMin
IntRangeToExtension
The equivalent for double is DoubleRangeExtension
IntToBytesExtension
IntToCharExtension
IterableAll
IterableAppend
IterableAppendElement
IterableAssociate
IterableAssociateBy
IterableAssociateWith
IterableAsStream
IterableAverageBy
IterableCached
IterableChunked
IterableChunkWhile
IterableContainsAll
IterableContainsAny
IterableContentEquals
IterableCount
IterableCycle
IterableDistinct
IterableDistinctBy
IterableElementAtOrDefault
IterableElementAtOrElse
IterableElementAtOrNull
IterableExcept
IterableExceptElement
IterableFilter
IterableFilterIndexed
IterableFilterIndexedTo
IterableFilterNot
IterableFilterNotIndexed
IterableFilterNotNull
IterableFilterNotTo
IterableFilterNotToIndexed
IterableFilterTo
IterableFirstOrDefault
IterableFirstOrNull
IterableFirstOrNullWhere
IterableFirstWhile
IterableFlatMap
IterableForEachIndexed
IterableFourthItem
IterableFutureX
IterableGroupBy
IterableIntersect
IterableIterableX
IterableJoinToString
IterableLastOrElse
IterableLastOrNull
IterableLastOrNullWhere
IterableLastWhile
IterableMapIndexed
IterableMapIndexedNotNull
IterableMapNotNull
IterableMax
IterableMaxBy
IterableMaxWith
IterableMinBy
IterableMinus
IterableMinWith
IterableNone
IterableNumAverageExtension
IterableNumMedianExtension
IterableNumSumExtension
Extensions for iterables
IterableOnEach
IterablePartition
IterablePlus
IterablePrepend
IterablePrependElement
IterableReversed
IterableSecondItem
IterableShuffled
IterableSlice
IterableSorted
IterableSortedBy
IterableSortedByDescending
IterableSortedDescending
IterableSortedWith
IterableSplitWhen
IterableStartsWithExtension
IterableSumBy
IterableTakeFirst
IterableTakeLast
IterableThirdItem
IterableToHashSet
IterableToIterable
IterableToUnmodifiable
IterableUnion
IterableWhereIndexed
IterableWhereIndexedTo
IterableWhereNot
IterableWhereNotIndexed
IterableWhereNotNull
IterableWhereNotTo
IterableWhereNotToIndexed
IterableWhereTo
IterableWindowed
IterableZip
ListBinarySearchExtension
ListDropExtension
ListDropLastExtension
ListDropLastWhileExtension
ListDropWhileExtension
ListElementAtOrNull
ListExtension
ListFlattenExtension
ListIndicesExtension
ListInsertionSortExtension
ListLastIndexExtension
ListLowerBoundExtension
ListMergeSortExtension
ListSwapExtension
MapAll
MapAny
MapCount
MapEntries
MapFilter
MapFilterKeys
MapFilterNot
MapFilterValues
MapGetOrElse
MapMapKeys
MapMapValues
MapMaxBy
MapMaxWith
MapMinBy
MapMinWith
MapNone
MapOrEmpty
MapToList
MapToMap
NullableStringIsNotNullOrBlankExtension
NullableStringIsNotNullOrEmptyExtension
NullableStringIsNullOrBlankExtension
NullableStringIsNullOrEmptyExtension
NullableStringOrEmptyExtension
NumArithmeticX
NumBetweenExtension
NumCoerceAtLeastExtension
NumCoerceAtMostExtension
NumCoerceInExtension
NumCoerceInRangeExtension
NumTimeExtension
Ordinals
PairDeconstruction
StringBufferWriteSpaceExtension
StringCapitalizeExtension
StringCharacters
StringDecapitalizeExtension
StringIsAsciiExtension
StringIsBlankExtension
StringIsCapitalizedExtension
StringIsDecapitalizedExtension
StringIsDoubleExtension
StringIsIntExtension
StringIsLatin1Extension
StringIsLowerCaseExtension
StringIsNotBlankExtension
StringIsUpperCaseExtension
StringMatchesExtension
StringMd5Extension
StringRemovePrefixExtension
StringRemoveSuffixExtension
StringRemoveSurroundingExtension
StringReversedExtension
StringSliceExtension
StringToDoubleExtension
StringToDoubleOrNullExtension
StringToIntExtension
StringToIntOrNullExtension
StringToUtf8Extension
StringToUtf16Extension
StringUrlCodingExtension

Functions

buildString(void builderAction(StringBuffer sb)) String
Builds new string by populating newly created StringBuffer using provided builderAction and then converting it to String.

Typedefs

Function0<R> = R Function()
Function1<A, R> = R Function(A a)
Function2<A, B, R> = R Function(A a, B b)
Function3<A, B, C, R> = R Function(A a, B b, C c)
Function4<A, B, C, D, R> = R Function(A a, B b, C c, D d)