formatted method

String formatted(
  1. Object? value
)

Formats the given value with the style.

Implementation

String formatted(Object? value) {
  var result = value.toString();
  for (final code in _codes) {
    result = result.withAnsiStyleCode(code);
  }
  return result;
}