lean_extensions 1.9.1
lean_extensions: ^1.9.1 copied to clipboard
A collection of extension methods without flutter dependency. Also includes some python-like functionality and json converters for easy validation
1.9.1 #
- Fix not passing correct sub-type to
Closeablefunctions
1.9.0 #
- Added
Closeablemixin for easy auto-closing resources - Added
runCloseableandrunCloseableAsyncmethods
1.8.0 #
- Added
tap()extension method onFuture - Fix: Removed "Pair" prefix on the returned value of
Pair.toString()
1.7.0 #
- Added top-level
zipandenumeratefunctions similar to python - Added extensions on
Iterablewith these same functions
1.6.0 #
- Added top-level getter
isDebugMode
1.5.0 #
-
Added extensions on
Random:
.nextBigInt()
.nextBigIntBetween()
.nextIntBetween() -
Added extensions on
BigInt:
.toIntOrThrow()- this avoids clamping a number; it's up to the user to check if int is valid
1.4.0 #
-
Added extensions on
String:
.trimPattern()
.trimPatternLeft()
.trimPatternRight()
.trimInvisible()
.replaceLast() -
Added extension on
Iterable<T>:
.reversed
1.3.1 #
- Lowered constraints on
any_datedependency
1.3.0 #
- Created
EasyComparable,SpecificComparableandStrictComparableto facilitate aligning>and<operators withComparableinterface
1.2.0 #
- Expose
stringconstants as static class and as top-level values, e.g.,base62charsandbase64chars
1.1.0 #
- Bump dependency with analysis error on lower constraints
1.0.0 #
- Stable release
- Removed static configuration
- Updated dependencies
0.14.3 #
- Added
normalizeLineBreaks()method onStringto replace all windows (CRLF) and old macos (CR) breaks with normal LF - Ensure
replaceLineBreaks()works with old macos line breaks (CR)
0.14.2 #
- Added
replaceLineBreaks()method onString
0.14.1 #
- Created 'truthy' / 'falsy' features: extensions on
Object?andAnyBoolConverter+AnyNullableBoolConverter
0.14.0 #
- Use
Cardinalfeature to convert text tointandBigInt
0.13.1 #
- Fix caret syntax on dependencies
0.13.0 #
- Started adding extensions to Map
0.12.1 #
- Fix: ensure fromRadixString() doesn't accept invalid digits
0.12.0 #
- Added
String<->BigIntconverter extensions with support for radix up to 64
0.11.2 #
- Fix: ensure fromRadixString() is case insensitive when radix is <= 32
0.11.1 #
- Fix: allow changing characters to be used by Random() extensions more than once
- Added homeage to pubspec
0.11.0 #
- Allow setting characters to be used by Random() extensions
- Added
int.toRadixExtended()extension to allow up to base 64 numeral system
0.10.1 #
- Bump dependency to include a required fix for
AnyDateConverter
0.10.0 #
- Add
toSentenceCase()andtoTitleCase()extensions
0.9.1 #
- Update readme and improve score by providing example
0.9.0 #
- Created
eval()function, just for fun; does not serve any real purpose and should not be used 😅
0.8.0 #
- Add
toArray()separatedList()andwrappedList()onIterable - Add
AnyUriConverterandAnyUriOrNullConverterto converters library - Add
sleep()to dart_essentials library
0.7.0 #
- Add
isNullOrEmptyonString?
0.6.0 #
- Add
separated()andwrapped()onIterable
0.5.0 #
- Add
dart_essentialslibrary- includes
Rangeclass andrange()function for loops similar to python
- includes
- Add a few more extensions on num
0.4.0 #
- Add
nextChar()andnextString()onRandom
0.3.0 #
- Add
AnyNumConverterandAnyNullableNumConverter
0.2.0 #
- Exports extensions from collection package
- Add
shiftLeft()andshiftRight()onIterable. Not in place, it returns new object - Renamed json converters
0.1.1 #
- Fix date only format
- Adds
orEmptyonIterable?
0.1.0 #
- Initial version
- Basic extensions on dart primitives