toDouble method

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

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

Implementation

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