corextra 1.0.3
corextra: ^1.0.3 copied to clipboard
Handy Dart extensions and utility functions for easier coding.
corextra #
A lightweight Dart package offering handy extensions and utility functions
for common types like String, int, double, List, and more.
Make your Dart and Flutter code cleaner, safer, and easier to read.
Features #
- Extensions on core types for safer parsing and formatting
- Null-safe and concise checks like
.isNullOrEmptyonString?andList? - Convenient conversion helpers:
.toTryInt(),.toTryDouble(),.toTryBool() - String utilities like
.capitalize() - Numeric helpers to sanitize negative values
- Helper functions like
isStringEmpty()andisListEmpty()for legacy or functional use - ResponsiveBreakpoints: simple and customizable screen size helpers (
xs,sm,md,lg,xl,xxl) for responsive layouts in Flutter - DateTime extensions for easy parsing from string to
DateTimeand formatting fromDateTimeto string with customizable formats
Getting Started #
Add this package to your Dart or Flutter project by adding this line to your pubspec.yaml:
dependencies:
corextra: ^1.0.2
Then import it in your Dart code:
import 'package:corextra/corextra.dart';