WxBorderStyle class
A class representing a border style for widgets.
You can create custom border styles using the constructor or
use the built-in constant styles like solid
, dotted
, dashed
,
and morse
.
- Mixed-in types
- Annotations
Constructors
-
WxBorderStyle(List<
double> pattern, {bool absolute = false}) -
Creates a new
WxBorderStyle
with the specified pattern, and flag to determine the pattern should relative to border width or not.const
Properties
- absolute → bool
-
Whether the pattern's value is relative to border width value or absolute value.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- isNonSolid → bool
-
Checks if the border style is non-solid (not equal to
WxBorderStyle.solid.pattern
).no setter - isSolid → bool
-
Checks if the border style is solid (pattern is equal to
WxBorderStyle.solid.pattern
).no setter -
pattern
→ List<
double> -
The list of doubles defining the on/off durations of the border pattern.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
override
-
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
-
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(
WxBorderStyle? a, WxBorderStyle? b, double t) → WxBorderStyle? - Creates a lerped (linearly interpolated) border style between two existing styles.
Constants
- dashed → const WxBorderStyle
- A constant representing a dashed border style.
- dotted → const WxBorderStyle
- A constant representing a dotted border style.
- morse → const WxBorderStyle
- A constant representing a Morse code-like border style.
- solid → const WxBorderStyle
- A constant representing a solid border style.