Border class
use WText to use the default Flutter Text widget
Constructors
- Border({double? pixelWidth = 2, BorderStyle? style = w.BorderStyle.solid, BorderRadius? borderRadius = const BorderRadius.all(Radius.circular(10)), Color? color, double? strokeAlign})
-
This is the elbe border. Use
WBorder
for the Flutter border. You can also use thetoDeco
method to convert this border to aBoxDecoration
.const - Border.preset({double? pixelWidth = 2, BorderStyle? style = BorderStyle.solid, BorderRadius? borderRadius = const BorderRadius.all(Radius.circular(10)), Color? color, double? strokeAlign})
-
create a border with a preset style
const
Properties
- borderRadius → BorderRadius?
-
final
- color → Color?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- pixelWidth → double?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- strokeAlign → double?
-
final
- style → BorderStyle?
-
final
Methods
-
copyWith(
{double? pixelWidth, BorderStyle? style, double? strokeAlign, Color? color, BorderRadius? borderRadius}) → Border -
merged(
Border? other) → Border -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDeco(
[Color? color]) → BoxDecoration -
convert this border to a
BoxDecoration
. Use this to apply the border to a FlutterContainer
widget. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited