toStr method

String toStr({
  1. int fractionDigits = 2,
})

Implementation

String toStr({int fractionDigits = 2}) {
  if (this == null) return '0';
  return this!.toStringAsFixed(fractionDigits);
}