dartbag 0.7.1
dartbag: ^0.7.1 copied to clipboard
A grab-bag of miscellaneous, lightweight utility libraries for Dart.
0.7.1 #
- Added
identityType<T>andisNullable<T>functions. - Added a
String.lazySplitandString.partialSplitextension methods.
0.7.0+1 #
- Correct some documentation.
- Improve test coverage.
0.7.0 #
This version includes multiple breaking changes.
- Moved
flattenDeepintocollection.dart. - Moved
compareIteratorsandComparableWrapperto a newcomparablelibrary. - Added a
Comparable.clampextension method. - Renamed the
int.padDigitsextension method toint.padLeftfor clarity. - Split the
IntUtilsextension into separateIntUtilsandPadLeftExtensionextensions. - Moved the
int.roundToMultipleOfRectangle.centerextension methods to a newmathlibrary. - Added
int.floorToMultipleOfandint.ceilToMultipleOfextension methods. - Added an
lcmfunction. - Replaced
currentDartPackagePathwith acurrentDartFilePathfunction. The package-relative path can be obtained by calling it withpackageRelative: true. - Added
DateTime.toStringWithOffsetandDateTime.toIso8601StringWithOffsetextension methods.
0.6.2 #
- Added a freestanding
tryAsfunction, which works better fordynamictypes.
0.6.1+2 #
- Corrected broken references in the documentation.
0.6.1 #
- Added a
ComparableWrapperclass. - Added a
PollableFutureclass.
0.6.0 #
- Added
hoursOnly,minutesOnly,secondsOnly,millisecondsOnly, andmicrosecondsOnlyextension getters toDuration. - Added a
tryParseDurationfunction. - Added a
mergeMapsfunction. - Require Dart 2.19.0 and enable new lints.
- Disable the
one_member_abstractslint.
0.5.0 #
- Renamed the
iterableslibrary tocollection. - Added a
compareIterablesfunction. - Added a
LinkedHashMap.sortextension method. - Added an
isSubtype<T1, T2>generic function. - Adjusted some timing-based tests to be less flaky by instead checking if they pass most of the time.
- Require Dart 2.18.0.
0.4.1 #
- Added a
Future.castextension method. - Added a
List.sortWithAsyncKeyextension method as an asynchronous version ofList.sortWithKey.
0.4.0 #
- Removed
RestartableTimer.package:asyncalready provides such a class. - Added a
timeAsyncOperationfunction as an asynchronous version oftimeOperation. - Added a
parseOptionValueextension method onpackage:args'sArgResults. - Added a
matcherlibrary with atoStringMatchesfunction.
0.3.0 #
- Added a
List.rotateLeftextension method. - Allow the
analysis_options.yamlfile to be consumed by other packages. - Moved
timeOperationfrommisc.darttodebug.dart. - Fixed
int.padLeftto work with negative integers. - Modified
RepeatableRandomto allow callers to specify the underlying pseudo-random-number generator. - Updated the
README.mdfile.
0.2.0 #
- Initial published version.