MaterialNumberValueAccessor constructor

MaterialNumberValueAccessor(
  1. BaseMaterialInput input,
  2. @Self() NgControl control,
  3. @Attribute('changeUpdate') String? changeUpdateAttr,
  4. @Attribute('keypressUpdate') String? keypressUpdateAttr,
  5. @Attribute('checkInteger') String? checkInteger,
  6. @Attribute('blurFormat') String? blurFormat,
  7. @Optional() NumberFormat? numberFormat,
)

Implementation

MaterialNumberValueAccessor(
    BaseMaterialInput input,
    @Self() NgControl control,
    @Attribute('changeUpdate') String? changeUpdateAttr,
    @Attribute('keypressUpdate') String? keypressUpdateAttr,
    @Attribute('checkInteger') String? checkInteger,
    @Attribute('blurFormat') String? blurFormat,
    @Optional() NumberFormat? numberFormat)
    : this._checkInteger = attributeToBool(checkInteger, defaultValue: false),
      super(
          input as MaterialInputComponent,
          control,
          attributeToBool(changeUpdateAttr, defaultValue: false),
          attributeToBool(keypressUpdateAttr, defaultValue: false),
          attributeToBool(blurFormat, defaultValue: false),
          numberFormat ?? NumberFormat.decimalPattern());