allowSelectAll method

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

Set ToolbarOptions.selectAll

Equivalent to

TextFormField(
  toolbarOptions: ToolbarOptions(
    selectAll: input
  )
)

Implementation

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

  return this;
}