string method

String? string({
  1. int? casas,
})

Implementation

String? string({int? casas}) {
  return sprintf("%.${casas}f", [this?.toDouble() ?? 0.0]);
}