allowCut method

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

Set ToolbarOptions.cut

Equivalent to

TextFormField(
  toolbarOptions: ToolbarOptions(
    cut: input
  )
)

Implementation

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

  return this;
}