FormCast.number constructor

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

Cast to a number

Implementation

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