corextra
library
Classes
-
AppLogger
-
AppLogger provides structured logging for app events, Dio requests, responses, and errors.
-
AppLoggerInterceptor
-
A Dio interceptor that logs requests, responses, and errors in a
pretty, bordered format — one consolidated block per event.
-
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.
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? extension isNullOrEmpty for cleaner code.
-
isStringEmpty(String? value)
→ bool
-
Checks if a nullable string is null or empty.
Use
String? extension isNullOrEmpty for cleaner code.
Exceptions / Errors
-
Generic or custom application errors
-
Base class for all custom exceptions in the package.
-
Exception for unknown/general errors
-
Exception for network-related errors
-
Exception for forced app updates
-
Exception for server-related errors