allowPaste method

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

Set ToolbarOptions.paste

Equivalent to

TextFormField(
  toolbarOptions: ToolbarOptions(
    paste: input
  )
)

Implementation

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

  return this;
}