AnchorStyle class
The style to be applied to anchor widget
- Mixed in types
- Implementers
- Annotations
Constructors
- AnchorStyle({EdgeInsetsGeometry? margin, EdgeInsetsGeometry? padding, BoxShape? shape, double? radius, BorderRadius? borderRadius, Color? overlayColor, double? overlayOpacity, bool? overlayDisabled})
-
Default AnchorStyle constructor.
const
- AnchorStyle.from(AnchorStyle? other)
- Create an AnchorStyle from another style
Properties
- borderRadius → BorderRadius?
-
The clipping radius of the containing rect. This is effective only if
the shape is BoxShape.circle.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- margin → EdgeInsetsGeometry?
-
Empty space to surround the outside anchor.
final
- overlayColor → Color?
-
The overlay color of the anchor when pressed, hovered over, or focused.
final
- overlayDisabled → bool?
-
Whether the overlay is disabled or not
final
- overlayEnabled → bool
-
Whether the overlay is enabled or not
no setter
- overlayOpacity → double?
-
The overlay opacity of the anchor when pressed, hovered over, or focused.
final
- padding → EdgeInsetsGeometry?
-
The padding between the contents of the anchor and the outside anchor.
final
- radius → double?
-
The radius of the overlay. If the shape is BoxShape.circle.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shape → BoxShape?
-
The shape (e.g., circle, rectangle) to use for the overlay drawn around
this part of the anchor when pressed, hovered over, or focused.
final
Methods
-
copyWith(
{EdgeInsetsGeometry? margin, EdgeInsetsGeometry? padding, BoxShape? shape, double? radius, BorderRadius? borderRadius, Color? overlayColor, double? overlayOpacity, bool? overlayDisabled, bool? mergeResolved, AnchorStyle? focusedStyle, AnchorStyle? hoveredStyle, AnchorStyle? pressedStyle, AnchorStyle? disabledStyle}) → AnchorStyle - Creates a copy of this AnchorStyle but with the given fields replaced with the new values.
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
override
-
merge(
AnchorStyle? other) → AnchorStyle - Creates a copy of this AnchorStyle but with the given fields replaced with the new values.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringShort(
) → String -
A brief description of this object, usually just the runtimeType and the
hashCode.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Methods
-
lerp(
AnchorStyle? a, AnchorStyle? b, double t) → AnchorStyle? - Linearly interpolate between two AnchorStyle objects.