getDocumentPositionAtOffset abstract method
Returns the DocumentPosition that corresponds to the given
layoutOffset, or null if the layoutOffset does not exist
within a piece of document content.
Implementation
DocumentPosition? getDocumentPositionAtOffset(Offset layoutOffset);