Adds several extensions
class |
Description |
GeoPoint |
Defines a geographical point. |
GeoBounds |
A latitude/longitude aligned rectangle. |
CompositeMapSubscription |
Acts as a map for multiple subscriptions that can be canceled at once. |
ReadableFile |
Implement a multi platform interface to be able to read a file. |
Extensions color code we thank "TinyColor"
Command |
Description |
ifEmpty |
if string is empty returns a 'text' otherwise return string |
isBlank |
if string is empty or contains only space returns true otherwise returns false |
ifBlank(() => 'text') |
if string is empty or contains only space returns 'text' otherwise returns string |
more methods... please complete this list... |
|
They are extended with the methods of the 'math' package
Command |
Description |
nullIfEmpty |
returns null or if it is empty returns true. |
replaces |
replace the old elements contained in the map with new ones. |
without |
Returns a iterable without bad elements. |
joinBy |
Concatenates the elements given by function. |
joinElement |
Concatenates the elements. |
tryFirst |
Returns the first element if it exists otherwise null. |
tryLast |
Returns the last element if it exists otherwise null. |
containsAll |
Returns true if the specified value is equal to at least one element. |
groupBy |
Splits a list into sub-lists stored in an object, based on the result. |
generateMap |
Generate the map by collection. |
Iterable<num/int/double/BigInt/Rational>
Command |
Description |
sumAll |
Calculate the sum of all numbers in the collection |
subtractAll |
Calculate the subtraction of all numbers in the collection |
divideAll |
Calculate the division of all numbers in the collection |
multiplyAll |
Calculate the multiplication of all numbers in the collection |
sum |
Sum [number] to all items in the collection |
subtract |
Subtract [number] to all items in the collection |
divide |
Divide [number] to all items in the collection |
multiply |
Multiply [number] to all items in the collection |
average |
Calculate the average of all numbers in the collection |
Iterable<MapEntry<K, V>> (BUILT)
Command |
Description |
toMap |
Convert the collection of entries into a [Map]. |
toMapList |
Grouping the results in list according to key. |
keys |
Returns only the keys. |
values |
Returns only the values. |
Iterable<Future
Command |
Description |
waitFutures |
same as [Future.wait] method |
anyFutures |
same as [Future.any] method |
Iterable
Command |
Description |
center |
Calculate a center. |
northeast |
Calculate the northeast corner. |
southwest |
Calculate the southwest corner. |
internalBounds |
Calculate the internal corners. |
externalBounds |
Calculate the external corners. |
Command |
Description |
generateIterable<K, V>(T Function(K key, V value) generator) |
returns a List from entries |
where |
Returns a new map with all entries that satisfy the predicate [test]. |
firstWhere |
Returns the first entry that satisfies the given predicate [test]. |
lastWhere |
Returns the last entry that satisfies the given predicate [test]. |
tryFirst |
Returns the first entry if it exists otherwise null. |
tryLast |
Returns the last entry if it exists otherwise null. |
reduce |
Reduces a map to a single value by iteratively combining entries. |
every |
Checks whether every entry of this map satisfies [test]. |
any |
Checks whether any entry of this map satisfies [test]. |
fold |
Reduces a map to a single value by iteratively combining entries. |
See time package
Command |
Description |
DateTime.copyWithPosition |
|
Command |
Description |
distinctRuntimeType |
Stream.distinct] by [T.runtimeType]. |
listenValueChanges |
Hear how the specified value changes over time from its previous value. |
Class |
Description |
GeoPointSerializer |
Serializer for [GeoPoint] Type |
LocaleSerializer |
Serializer for the [Locale] type |
ByPassSerializer |
Serializer that does not serialize and deserialize the specified type [T] |
Serializers
Command |
Description |
serializeAll |
Serialize the collection of objects |
serializeAllWith |
Serialize the collection of objects using [Serializer]. |
deserializeAll |
Deserialize the collection of objects. |
deserializeAllWith |
Deserialize the collection of objects using [Serializer]. |