copyWith method

PerfectTextController copyWith({
  1. FocusNode? focusNode,
  2. bool selectAllOnFocus = false,
  3. bool readyOnly = false,
  4. void onTextChange(
    1. String value
    )?,
  5. void onFocusChange(
    1. bool value
    )?,
})

Implementation

PerfectTextController copyWith({
  FocusNode? focusNode,
  bool selectAllOnFocus = false,
  bool readyOnly = false,
  void Function(String value)? onTextChange,
  void Function(bool value)? onFocusChange,
}) {
  return PerfectTextController(
    focusNode: focusNode ?? this.focusNode,
    selectAllOnFocus: selectAllOnFocus,
    readyOnly: readyOnly,
    onTextChange: onTextChange ?? this.onTextChange,
    onFocusChange: onFocusChange ?? this.onFocusChange,
  );
}