toDecimal method

String toDecimal (
  1. {int total,
  2. double decimal}
)

DECIMAL equivalent column with precision (total digits) and scale (decimal digits).

Implementation

String toDecimal({int total, double decimal}) {
  return "\$table->decimal('$this', $total , $decimal );";
}