icon method

NikuTextField icon(
  1. Widget icon
)

An icon to show before the input field and outside of the decoration's container

Equivalent to

TextFieldForm(
  decoration: InputDecoration(
    icon: input
  )
)

Implementation

NikuTextField icon(Widget icon) {
  this._input_icon = icon;

  return this;
}