applyColor function

String applyColor(
  1. String text,
  2. String colorCode
)

Helper functions for logging.

This file contains various utility functions that assist in formatting log messages and data, including color application and JSON formatting.

Implementation

String applyColor(String text, String colorCode) {
  /// Applies a color to the given text using ANSI escape codes.
  return '$colorCode$text$reset';
}