FakeDocumentLayout class
Fake DocumentLayout, intended for tests that interact with a logical DocumentLayout but do not depend upon a real widget tree with a real DocumentLayout implementation.
- Implemented types
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
findLastSelectablePosition(
) → DocumentPosition? -
Returns the DocumentPosition at the end of the last selectable component.
inherited
-
getAncestorOffsetFromDocumentOffset(
Offset documentOffset, [RenderObject? ancestor]) → Offset -
Converts
documentOffsetfrom this DocumentLayout's coordinate space to the same location on the screen within theancestor's coordinate space.inherited -
getComponentByNodeId(
String nodeId) → DocumentComponent< StatefulWidget> ? -
Returns the DocumentComponent that renders the DocumentNode with
the given
nodeId, ornullif no such component exists.inherited -
getDesiredCursorAtOffset(
Offset documentOffset) → MouseCursor? -
Returns the MouseCursor that's desired by the component at
documentOffset, ornullif the document has no preference for the MouseCursor at the givendocumentOffset.inherited -
getDocumentOffsetFromAncestorOffset(
Offset ancestorOffset, [RenderObject? ancestor]) → Offset -
Converts
ancestorOffsetfrom theancestor's coordinate space to the same location on the screen within this DocumentLayout's coordinate space.inherited -
getDocumentPositionAtOffset(
Offset layoutOffset) → DocumentPosition? -
Returns the DocumentPosition that corresponds to the given
layoutOffset, ornullif thelayoutOffsetdoes not exist within a piece of document content.inherited -
getDocumentPositionNearestToOffset(
Offset layoutOffset) → DocumentPosition? -
Returns the DocumentPosition at the y-value of the given
layoutOffsetthat sits closest to the x-value of the givenlayoutOffset, ornullif there is no document content at the given y-value.inherited -
getDocumentSelectionInRegion(
Offset baseOffset, Offset extentOffset) → DocumentSelection? -
Returns a DocumentSelection that begins near
baseOffsetand extends toextentOffset, ornullif no document content sits between the provided points.inherited -
getEdgeForPosition(
DocumentPosition position) → Rect? -
Returns the upstream edge or downstream edge of the content at the given
position.inherited -
getGlobalOffsetFromDocumentOffset(
Offset documentOffset) → Offset -
Converts
documentOffsetfrom this DocumentLayout's coordinate space to the same location on the screen in the global coordinate space.inherited -
getRectForPosition(
DocumentPosition position) → Rect? -
Returns the bounding box around the given
position, within the associated component, ornullif no corresponding component can be found, or the corresponding component has not yet been laid out.inherited -
getRectForSelection(
DocumentPosition basePosition, DocumentPosition extentPosition) → Rect? -
Returns a Rect that bounds the content selected between
basePositionandextentPosition.inherited -
noSuchMethod(
Invocation invocation, {Object? returnValue, Object? returnValueForMissingStub = deferToDefaultResponse}) → dynamic -
Handles method stubbing, method call verification, and real method calls.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited