TestDocumentConfigurator class
Builder that configures and pumps a SuperReader widget.
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
-
autoFocus(
bool autoFocus) → TestDocumentConfigurator - Configures the SuperReader to auto-focus when first pumped, or not.
-
forAndroid(
) → TestDocumentConfigurator - Configures the SuperReader for standard Android interactions, e.g., touch gestures and IME input.
-
forDesktop(
{TextInputSource inputSource = TextInputSource.keyboard}) → TestDocumentConfigurator - Configures the SuperReader for standard desktop interactions, e.g., mouse and keyboard input.
-
forIOS(
) → TestDocumentConfigurator - Configures the SuperReader for standard iOS interactions, e.g., touch gestures and IME input.
-
insideCustomScrollView(
) → TestDocumentConfigurator - Configures the SuperReader to be displayed inside a CustomScrollView.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pump(
) → Future< TestDocumentContext> -
Pumps a SuperReader widget tree with the desired configuration, and returns
a TestDocumentContext, which includes the artifacts connected to the widget
tree, e.g., the
DocumentEditor, DocumentComposer, etc. -
toString(
) → String -
A string representation of this object.
inherited
-
useAppTheme(
ThemeData theme) → TestDocumentConfigurator - Configures the ThemeData used for the MaterialApp that wraps the SuperReader.
-
useStylesheet(
Stylesheet stylesheet) → TestDocumentConfigurator -
Configures the SuperReader to use the given
stylesheet. -
withAddedComponents(
List< ComponentBuilder> newComponents) → TestDocumentConfigurator - Adds the given component builders to the list of component builders that are used to render the document layout in the pumped SuperReader.
-
withAndroidToolbarBuilder(
WidgetBuilder? builder) → TestDocumentConfigurator -
Configures the SuperEditor to use the given
builderas its android toolbar builder. -
withComponentBuilders(
List< ComponentBuilder> ? componentBuilders) → TestDocumentConfigurator -
Configures the SuperReader to use only the given
componentBuilders -
withCustomWidgetTreeBuilder(
WidgetTreeBuilder? builder) → TestDocumentConfigurator - Configures the SuperReader to use a custom widget tree above SuperReader.
-
withEditorSize(
Size? size) → TestDocumentConfigurator -
Configures the SuperReader to constrain its maxHeight and maxWidth using the given
size. -
withFocusNode(
FocusNode? focusNode) → TestDocumentConfigurator -
Configures the SuperReader to use the given
focusNode -
withGestureMode(
DocumentGestureMode gestureMode) → TestDocumentConfigurator -
Configures the SuperReader to use the given
gestureMode. -
withiOSToolbarBuilder(
DocumentFloatingToolbarBuilder? builder) → TestDocumentConfigurator -
Configures the SuperEditor to use the given
builderas its iOS toolbar builder. -
withScrollController(
ScrollController? scrollController) → TestDocumentConfigurator -
Configures the SuperReader to use the given
scrollController -
withSelection(
DocumentSelection? selection) → TestDocumentConfigurator -
Configures the SuperReader to use the given
selectionas its initial selection. -
withSelectionStyles(
SelectionStyles? styles) → TestDocumentConfigurator -
Configures the SuperReader with the given selection
styles, which dictate the color of the primary user's selection, and related selection details. -
withTapRegionGroupId(
String? tapRegionGroupId) → TestDocumentConfigurator -
Configures the SuperReader to use the given
tapRegionGroupId.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited