corextra library
Classes
- AppLogger
- AppLogger provides structured logging for app events, Dio requests, responses, and errors.
- DioErrorHandler
- Utility helper for Dio-related features like error handling, logging, and potential future enhancements.
- FadeSlideTransition
- A widget that combines fade and slide animations for smooth transitions.
- FormValidators
- Form validators with optional translation.
- ResponsiveBreakpoints
- Provides helpers to check screen size categories for responsive layouts.
Enums
- LogLevel
- Logging levels
- SlideDirection
- Directions for the slide animation in FadeSlideTransition.
Extensions
- DoubleExtensions on double
- Extensions on double for convenience.
- IntExtensions on int
- Extensions on int for convenience.
-
ListExtensions
on List<
T> ? - Extensions on nullable List for safe emptiness checks.
- NonNullableStringExtensions on String
- Extensions on non-nullable String for common parsing and formatting.
- NullableDateTimeExtensions on DateTime?
- Extension on nullable DateTime to format it into a string.
- NullableStringExtensions on String?
- Extensions on nullable String to check emptiness safely.
- ResponsiveConstraintsExtensions on BoxConstraints
- Extensions on BoxConstraints for Tailwind-style responsive checks.
- ResponsiveContextExtensions on BuildContext
- Extensions on BuildContext for Tailwind-style responsive checks.
-
SafeSetStateExtension
on State<
StatefulWidget> - Extension to safely call setState only if the widget is mounted.
Functions
-
debugLog(
String message, {LogLevel level = LogLevel.info}) → void - Logs messages to console in debug mode with optional level.
-
isListEmpty<
T> (List< T> ? value) → bool -
Checks if a nullable list is null or empty.
Use
List?extensionisNullOrEmptyfor cleaner code. -
isStringEmpty(
String? value) → bool -
Checks if a nullable string is null or empty.
Use
String?extensionisNullOrEmptyfor cleaner code.
Typedefs
- Translator = String Function(String)
- A function that translates a string.
Exceptions / Errors
- CorextraCustomException
- Generic or custom application errors
- CorextraException
- Base class for all custom exceptions in the package.
- CorextraGeneralException
- Exception for unknown/general errors
- CorextraNetworkException
- Exception for network-related errors
- CorextraNewVersionException
- Exception for forced app updates
- CorextraServerException
- Exception for server-related errors