formatValue static method

String formatValue(
  1. dynamic value, {
  2. String? format,
  3. String? prefix = '',
  4. String? suffix = '',
})

Formats a value according to the rules

Implementation

static String formatValue(
  dynamic value, {
  String? format,
  String? prefix = '',
  String? suffix = '',
}) {
  final formattedValue = DataExtractor.formatValue(value, format: format);
  return '$prefix$formattedValue$suffix';
}