NumberElement constructor

NumberElement({
  1. String? id,
  2. String? initValue,
  3. String? label = "",
  4. String? hint = "",
  5. DecorationElement? decorationElement,
  6. bool isDigits = false,
  7. String? errorMsg,
  8. EdgeInsets padding = const EdgeInsets.all(2.0),
  9. Validation? validator,
  10. bool isRequired = false,
  11. bool readOnly = false,
  12. bool visibility = true,
})

Implementation

NumberElement({
  String? id,
  this.initValue,
  this.label = "",
  this.hint = "",
  this.decorationElement,
  this.isDigits = false,
  this.errorMsg,
  this.padding = const EdgeInsets.all(2.0),
  this.validator,
  this.isRequired = false,
  this.readOnly = false,
  bool visibility = true,
}) : super(
        id: id,
        decorationElement: decorationElement,
        initValue: initValue,
        label: label,
        hint: hint,
        readOnly: readOnly,
        isRequired: isRequired,
        typeInput: TypeInput.Numeric,
        visibility: visibility,
      );