DecimalRule constructor

const DecimalRule(
  1. int min, [
  2. int? max
])

min to max digits after the decimal point.

Implementation

const DecimalRule(this.min, [this.max]);