border property
ShapeBorder?
get
border
The shape border, or null if one can't be derived.
Implementation
ShapeBorder? get border => switch (this) {
BoxDecoration(shape: .circle, :final border) => CircleBorder(side: border?.top ?? .none),
BoxDecoration(:final borderRadius, :final border) => RoundedRectangleBorder(
borderRadius: borderRadius ?? .zero,
side: border?.top ?? .none,
),
ShapeDecoration(:final shape) => shape,
_ => null,
};