NumberInputModel constructor
NumberInputModel({})
Creates a new number-input model.
Implementation
NumberInputModel({
this.prompt = '? ',
this.placeholder = '',
num? defaultValue,
this.min,
this.max,
this.step = 1,
this.hint = '',
this.showHelp = true,
NumberInputKeyMap? keyMap,
NumberInputStyles? styles,
this.validate,
}) : keyMap = keyMap ?? NumberInputKeyMap(),
styles = styles ?? NumberInputStyles(),
_rawInput = defaultValue != null ? _formatNum(defaultValue) : '';