MaterialNumberValueAccessor constructor
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,
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());