allowCut method

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

Set ToolbarOptions.cut

Equivalent to

TextFormField(
  toolbarOptions: ToolbarOptions(
    cut: input
  )
)

Implementation

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

  return this;
}