allowPaste method

NikuTextField allowPaste([
  1. bool value = false
])

Set ToolbarOptions.paste

Equivalent to

TextFormField(
  toolbarOptions: ToolbarOptions(
    paste: input
  )
)

Implementation

NikuTextField allowPaste([bool value = false]) {
  this._toolbarOptions = ToolbarOptions(
      copy: this._toolbarOptions?.copy ?? true,
      cut: this._toolbarOptions?.cut ?? true,
      paste: value,
      selectAll: this._toolbarOptions?.selectAll ?? true);

  return this;
}