RestorableTextEditingController constructor

RestorableTextEditingController({
  1. String? text,
})

Creates a RestorableTextEditingController.

This constructor treats a null text argument as if it were the empty string.

Implementation

factory RestorableTextEditingController({String? text}) => RestorableTextEditingController.fromValue(
  text == null ? TextEditingValue.empty : TextEditingValue(text: text),
);