ObjectSettings class
Represents settings used to control object drawables in the UI
- Annotations
Constructors
- ObjectSettings({ObjectLayoutAssistSettings layoutAssist = const ObjectLayoutAssistSettings(), ObjectEnlargeControlsResolver enlargeControlsResolver = _enlargeControls, ObjectShowScaleRotationControlsResolver showScaleRotationControlsResolver = _showScaleRotationControls})
-
Creates a TextSettings with the given
layoutAssist
.const
Properties
- enlargeControlsResolver → ObjectEnlargeControlsResolver
-
A function used to decide whether to enlarge the object controls or not.
This is because on touch screens, larger controls are needed to make them easier to tap and drag.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- layoutAssist → ObjectLayoutAssistSettings
-
The layout-assist settings of the current object.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showScaleRotationControlsResolver → ObjectShowScaleRotationControlsResolver
-
A function used to decide whether to show scale and rotation controls or not.
This is because on touch screens, scale and rotation can be controlled with pinching.
(However, controlling the size for
Sized2DDrawable
s still needs the controls).final
Methods
-
copyWith(
{ObjectLayoutAssistSettings? layoutAssist, ObjectEnlargeControlsResolver? enlargeControlsResolver, ObjectShowScaleRotationControlsResolver? showScaleRotationControlsResolver}) → ObjectSettings - Creates a copy of this but with the given fields replaced with the new values.
-
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