InitialTextController constructor

InitialTextController({
  1. String? text,
  2. required String fixedInitialString,
  3. TextStyle? fixedInitialStringStyle,
})

Implementation

InitialTextController({String? text, required this.fixedInitialString, this.fixedInitialStringStyle})
    : super(text: '$fixedInitialString${text ?? ''}') {
  super.value = value.copyWith(selection: TextSelection.collapsed(offset: fixedInitialString.length));
}