FormCast.number constructor

FormCast.number({
  1. bool decimal = false,
})

Cast to a number

Implementation

FormCast.number({bool decimal = false}) {
  this.type = "number";
  if (decimal) {
    this.type = "number:decimal";
  }
}