is_dart_empty_or_not 0.6.0
is_dart_empty_or_not: ^0.6.0 copied to clipboard
A Dart package that provides extensions for checking empty or zero values
0.6.0 #
- ADDED:
whenEmptyOrNullonString,List,Set,Mapand their nullable twins — thevalue.isEmpty ? null : valuenormalize-to-null in one call (the fallbackwhenEmptyUsecannot express: its parameter is non-nullable). - ADDED:
whenZeroOrNullonint,doubleandnum— thevalue == 0 ? null : valuenormalize-to-null. - ADDED:
isNullOrBlank/isNotNullNorBlankonString?— likeisNullOrEmpty/isNotNullNorEmptybut trim-aware (blank input counts as absent).
0.5.1 #
- DOCS: document the type-promotion caveat on the nullable extensions (Dart does not promote through extension getters; keep the explicit form when the value is used after the guard).
0.5.0 #
- ADDED: nullable-aware extensions for
String?,List?,Map?andSet?:isNullOrEmpty/isNotNullNorEmptyplus a nullablewhenEmptyUsewith the same call shape as the non-nullable one — collapses the commonvalue == null || value.isEmptyguard into a single call.
0.4.0 #
-
BREAKING: dependencies update:
environment: sdk: ">=3.11.0 <4.0.0"
0.3.0 #
-
BREAKING: dependencies update:
environment: sdk: ">=3.10.0 <4.0.0" dev_dependencies: lints: ^6.0.0 test: ^1.29.0 xsoulspace_lints: ^0.1.2
0.2.3 #
- Added example file
- Fixed repository link
0.2.2 #
- Added tests and coverage
0.2.0 #
- Added extension methods for Duration:
- isZero
- whenZeroUse
- isNegative
- whenNegativeUse
- isPositive
0.1.0 #
initial version