utility library
Extensions
-
UtilityList
on List<
T?> -
UtilityListNum
on List<
num> - UtilityNumber on int
- UtilityString on String
Properties
-
deburredLetters
→ Map<
String, String> -
final
- reAsciiWord → RegExp
-
final
- reComboHalfMarksRange → String
-
final
- reComboMark → RegExp
-
final
- reHasUnicodeWord → RegExp
-
final
- reIsBadHex → RegExp
-
final
- reIsBinary → RegExp
-
final
- reIsOctal → RegExp
-
final
- reLatin → RegExp
-
final
- reOptMod → String
-
final
- reUnicode → RegExp
-
final
- reUnicodeWord → RegExp
-
final
- rsApos → String
-
final
- rsAstral → String
-
final
- rsAstralRange → String
-
final
- rsBreak → String
-
final
- rsBreakRange → String
-
final
- rsCombo → String
-
final
- rsComboMarksRange → String
-
final
- rsComboRange → String
-
final
- rsComboSymbolsRange → String
-
final
- rsDigits → String
-
final
- rsDingbat → String
-
final
- rsDingbatRange → String
-
final
- rsEmoji → String
-
final
- rsFitz → String
-
final
- rsLower → String
-
final
- rsLowerRange → String
-
final
- rsMathOpRange → String
-
final
- rsMisc → String
-
final
- rsMiscLower → String
-
final
- rsMiscUpper → String
-
final
- rsModifier → String
-
final
- rsNonAstral → String
-
final
- rsNonCharRange → String
-
final
- rsOptContrLower → String
-
final
- rsOptContrUpper → String
-
final
- rsOptJoin → String
-
final
- rsOptVar → String
-
final
- rsOrdLower → String
-
final
- rsOrdUpper → String
-
final
- rsPunctuationRange → String
-
final
- rsRegional → String
-
final
- rsSeq → String
-
final
- rsSpaceRange → String
-
final
- rsSurrPair → String
-
final
- rsSymbol → String
-
final
- rsUpper → String
-
final
- rsUpperRange → String
-
final
- rsVarRange → String
-
final
- rsZWJ → String
-
final
Functions
-
chunk<
T> (List< T> list, [int size = 1]) → List<List< T> > -
Creates an new list of elements split into groups the length of
size
. Iflist
can't be split evenly, the final chunk will be the remaining elements. -
compact<
T> (List< T> list) → List<T> -
Creates an list of elements where the values of the list are not
Falsey
. -
divide(
num dividend, num divisor) → int -
It returns
quotient
as integer on divison. -
drop<
T> (List< T> list, [int n = 1]) → List<T> -
removes
n
number of elements from thebeginning of list
-
dropRight<
T> (List< T> list, [int n = 1]) → List<T> -
removes
n
number of elements from the ending of list -
dropRightWhile<
T> (List< T> list, bool test(T element)) → List<T> -
starts
removing elements
from theending of list
until condition becomesfalse
-
dropWhile<
T> (List< T> list, bool test(T element)) → List<T> -
starts
removing elements
from thestarting of list
until condition becomesfalse
-
flatten<
T> (List< T> list) → List<T> -
Flattens
array a single level deep. -
flattenDeep<
T> (List< T> list) → List<T> -
Recursively flattens array.
-
flattenDepth<
T> (List< T> list, [int depth = 1]) → List<T> ? -
Recursively flatten array up to depth times.
-
isFalsey(
dynamic value) → bool -
returns
true
if value is (null
orfalse
or''
or0
); -
isNumber(
dynamic s) → bool -
returns
true
ifthis
isnumber
otherwisefalse
. -
slice<
T> (List< T> list, int start, [int? end]) → List<T> ? -
Creates a slice of
list
fromstart
up to, but not including,end
. -
toNumber(
dynamic value, {bool showException = false}) → num? -
Converts
value
to number -
xor(
int val1, int val2) → int -
It returns
xor
operation -
zeroFillRightShift(
int number, int amount) → int -
As operator
>>>
is not available in dart, SozeroFillRightShift
function helps to mimics the working of>>>
.