WxBorderSide.fromLegacy constructor

WxBorderSide.fromLegacy(
  1. BorderSide side
)

Creates a WxBorderSide object from a legacy BorderSide.

Implementation

WxBorderSide.fromLegacy(BorderSide side)
    : style = null,
      gradient = null,
      color = side.color,
      width = side.style == BorderStyle.none ? 0 : side.width,
      offset = side.strokeAlign;