For TextNode only.
Only the widget rendered by TextNode need to implement the detail, and the rest can return null.
TextSelection? getTextSelectionInSelection(Selection selection) => null;