I’ve found that the solution is easy.
I just had to extend/implement TextEditingController
and create my implementation of TextSpan buildTextSpan({TextStyle style , bool withComposing})
.
This buildTextSpan
method is responsible for creating text spans shown in TextField.