TextMagnifierConfiguration class
A configuration object for a magnifier.
This magnifying glass is useful for scenarios on mobile devices where the user's finger may be covering part of the screen where a granular action is being performed, such as navigating a small cursor with a drag gesture, on an image or text.
In general, most features of the magnifier can be configured through MagnifierBuilder. TextMagnifierConfiguration is used to configure the magnifier's behavior through the SelectionOverlay.
Constructors
- TextMagnifierConfiguration({MagnifierBuilder? magnifierBuilder, bool shouldDisplayHandlesInMagnifier = true})
-
Constructs a TextMagnifierConfiguration from parts.
const
Properties
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- magnifierBuilder → MagnifierBuilder
-
Signature for a builder that builds a Widget with a MagnifierController.
read-only
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
- shouldDisplayHandlesInMagnifier → bool
-
Determines whether a magnifier should show the text editing handles or not.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- disabled → const TextMagnifierConfiguration
- A constant for a TextMagnifierConfiguration that is disabled.