ResizerTheme class
Theme configuration for resize handles used by nodes and annotations.
Defines the visual appearance and interaction behavior for resize handles:
- Handle size (width/height of the visible handle)
- Fill color (interior color of the handle)
- Border color and width (outline of the handle)
- Snap distance (padding around handles for easier hit targeting)
Example:
final customResizerTheme = ResizerTheme.light.copyWith(
handleSize: 12.0,
borderColor: Colors.green,
);
Constructors
Properties
- borderColor → Color
-
Border color of the resize handles.
final
- borderWidth → double
-
Border width of the resize handles.
final
- color → Color
-
Fill color of the resize handles.
final
- handleSize → double
-
Size of each resize handle (width and height).
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- snapDistance → double
-
Additional hit area around each handle for easier targeting.
final
Methods
-
copyWith(
{double? handleSize, Color? color, Color? borderColor, double? borderWidth, double? snapDistance}) → ResizerTheme - Creates a copy of this theme with the given fields replaced.
-
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
- dark → const ResizerTheme
- Dark theme resizer configuration.
- light → const ResizerTheme
- Light theme resizer configuration.