sundayPrint function
void
sundayPrint(
- dynamic text
A utility function to print text in the console during debug mode.
This function wraps the standard print function with a debug mode check, ensuring that print statements are only executed in debug builds.
text The dynamic content to be printed. Can be of any type.
Example:
sundayPrint('Debug message');
sundayPrint({'key': 'value'});
Implementation
void sundayPrint(dynamic text) {
if (kDebugMode) {
print(text);
}
}