borderRadius property

  1. @override
List<Radius>? get borderRadius
override

Implementation

@override
List<Radius>? get borderRadius {
  bool hasBorderRadius = borderTopLeftRadius != CSSBorderRadius.zero ||
      borderTopRightRadius != CSSBorderRadius.zero ||
      borderBottomRightRadius != CSSBorderRadius.zero ||
      borderBottomLeftRadius != CSSBorderRadius.zero;

  return hasBorderRadius ? [
    borderTopLeftRadius.computedRadius,
    borderTopRightRadius.computedRadius,
    borderBottomRightRadius.computedRadius,
    borderBottomLeftRadius.computedRadius
  ] : null;
}