toFormattedString method

String toFormattedString({
  1. int caracteres = 1,
})

Implementation

String toFormattedString({int caracteres = 1}) {
  return this.toStringAsFixed(
    this.truncateToDouble() == this ? 0 : caracteres,
  );
}