allowCopy method

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

Set ToolbarOptions.copy

Equivalent to

TextFormField(
  toolbarOptions: ToolbarOptions(
    copy: input
  )
)

Implementation

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

  return this;
}