setBorder method

NikuTextField setBorder({
  1. InputBorder? border,
  2. InputBorder? enabled,
  3. InputBorder? disabled,
  4. InputBorder? focused,
  5. InputBorder? error,
})

Set multiple InputDecoration at once

Equivalent to

TextFormField(
  decoration: InputDecoration(
    border: border,
    enabled: enabled,
    disabled: disabled,
    focused: focused,
    error: error
  )
)

Implementation

NikuTextField setBorder(
    {InputBorder? border,
    InputBorder? enabled,
    InputBorder? disabled,
    InputBorder? focused,
    InputBorder? error}) {
  this._input_border = border;
  this._input_enabledBorder = border;
  this._input_disabledBorder = border;
  this._input_focusedBorder = border;
  this._input_errorBorder = border;

  return this;
}