lean_extensions 1.6.0
lean_extensions: ^1.6.0 copied to clipboard
A collection of extension methods without flutter dependency. Also includes some python-like functionality and json converters for easy validation
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_date
dependency
1.3.0 #
- Created
EasyComparable
,SpecificComparable
andStrictComparable
to facilitate aligning>
and<
operators withComparable
interface
1.2.0 #
- Expose
string
constants as static class and as top-level values, e.g.,base62chars
andbase64chars
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 onString
to 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
Cardinal
feature to convert text toint
andBigInt
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
<->BigInt
converter 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
AnyUriConverter
andAnyUriOrNullConverter
to converters library - Add
sleep()
to dart_essentials library
0.7.0 #
- Add
isNullOrEmpty
onString?
0.6.0 #
- Add
separated()
andwrapped()
onIterable
0.5.0 #
- Add
dart_essentials
library- includes
Range
class 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
AnyNumConverter
andAnyNullableNumConverter
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
orEmpty
onIterable?
0.1.0 #
- Initial version
- Basic extensions on dart primitives