borderE method

ContainerBuilder borderE({
  1. double width = 1.0,
  2. Color color = const Color(0xFFE5E7EB),
})

border-e -> 设置结束方向的边框(LTR 时为 right,RTL 时为 left)

Implementation

ContainerBuilder borderE({double width = 1.0, Color color = const Color(0xFFE5E7EB)}) {
  if (_borderDirectional == null) {
    _borderDirectional = BorderDirectional(
      end: BorderSide(color: color, width: width),
    );
  } else {
    final existing = _borderDirectional!;
    _borderDirectional = BorderDirectional(
      start: existing.start,
      end: BorderSide(color: color, width: width),
      top: existing.top,
      bottom: existing.bottom,
    );
  }
  return this;
}