extensions_core
Extensions for dart and flutter
0.0.4
2.8K downloads/mo
#4778 most downloaded on pub.dev
LeanQChris/extensions
What this package is like to depend on
Last release 20 days ago
04 Aug 2026
Ships fairly regularly
a new release about every 10 months
Some releases are documented
notes for 1 of 4 stable releases
Nothing withdrawn
no release was ever pulled
2 years old
4 releases · first in 2024
1 release in the last 12 months
see the full history below
Release timeline
4 releases · Dec 2024 to Aug 2026
2025
2026
Releases
latest 4-
0.0.404 Aug 2026Release notes
Open source →Added
- New extension files:
object.dart:let,also,run,isNull,isNotNullduration.dart:inWeeks,format()edge_insets.dart:EdgeInsets.copyWith()form_validators.dart:requiredField,emailValidator,phoneValidator,minLengthValidator,maxLengthValidator
String: case conversion (toCamelCase,toPascalCase,toSnakeCase,toKebabCase), safe parsing (toIntSafe,toDoubleSafe,toBool), slicing (before,after,between,replaceLast,countOccurrences),isNullOrEmpty(nullable),slugify,collapseWhitespace,initials,masked,isStrongPassword,containsSpecialCharacter,isAlphanumeric,isJson,onlyDigits,withoutDigitsNumber/int:isPositive,isZero,isDivisibleBy,percentageOf,formatBytes,isEven,isOdd,ordinal,toBinary,toOctal,toHexDateTime:isTomorrow,isSameDay/Month/Year,isBetween,isWeekend,isWeekday,isLeapYear,quarter,startOf/endOf(day, week, month, year),tomorrow,yesterday,copyWith,ageInYearsIterable:distinctBy,countWhere,containsAll,containsAny,zip,unzip,flatten,insertBetween;sum,min,max,averageonIterable<num>List:rotateMap:invert,getOrPut,merge,pick,omit,filterKeys,filterValues,keysOfColor:colorFromHex(),darken,lighten,inverse,complementary,hue,saturation,brightness,withBrightness,isTransparent,toMaterialColorBuildContext:mediaQuery,safePadding,locale,textDirection,orientation,isPortrait,isLandscape,devicePixelRatio,textScaler,hideKeyboardWidget:margin,background,border,tooltip,onLongPress,onDoubleTap,inkWell,visible,safeArea,blur,rotated,scaled,constrained,aspectRatio,width,heightNavigation:canPop,maybePop,popWithResult,popToFirst,currentRouteName,pushWithSlide,showSheet,showAppDialogFile:isImage,isVideo,isAudio,sizeInMB,readAsStringSafe
Changed
- Public types
PlatformInfo/TargetPlatformInforeplace the private_Platform/_TargetPlatform(accessible from app code). - Minimum Flutter raised to
>=3.27.0for the modern wide-gamutColorAPI. - Removed unused dev dependencies (
path_provider,mocktail).
Fixed
Color.toHex()returned incorrect values on Flutter ≥3.27 (alpha/red/green/bluenow return 0–255, breaking the old math); now uses thea/r/g/baccessors.File.sizeFormatted()crashed on empty files (log(0)→-inf); now returns0 B.
Tests
- Added
test/extensions_test.dartcovering all new extensions (36 tests).
- New extension files:
-
0.0.309 Jun 2025Nothing published for this version
-
0.0.217 Dec 2024Nothing published for this version
-
0.0.117 Dec 2024Nothing published for this version