FoNumberInputComponent constructor

FoNumberInputComponent(
  1. @Self() @Optional() NgControl? control,
  2. @Attribute('tabindex') String? tabIndex,
  3. ChangeDetectorRef _changeDetectorRef
)

Implementation

FoNumberInputComponent(@Self() @Optional() this.control,
    @Attribute('tabindex') this.tabIndex, this._changeDetectorRef) {
  try {
    tabIndexNum = tabIndex == null ? null : int.parse(tabIndex!);
  } on FormatException catch (e) {
    print(e.message);
  }

  _mouseUpListener = html.document.onMouseUp.listen(onMouseUp);
  _touchEndListener = html.document.onTouchEnd.listen(onMouseUp);
  _keyUpListener = html.document.onKeyUp.listen(onMouseUp);

  control?.valueAccessor = this;
}