parseBorderRadius function

BorderRadius? parseBorderRadius(
  1. Map<String, dynamic>? map
)

Implementation

BorderRadius? parseBorderRadius(Map<String, dynamic>? map) {
  if (map == null) return null;
  Radius? topLeft = parseRadius(map["topLeft"]);
  Radius? topRight = parseRadius(map["topRight"]);
  Radius? bottomLeft = parseRadius(map["bottomLeft"]);
  Radius? bottomRight = parseRadius(map["bottomRight"]);
  return BorderRadius.only(
    topLeft: topLeft ?? Radius.zero,
    topRight: topRight ?? Radius.zero,
    bottomLeft: bottomLeft ?? Radius.zero,
    bottomRight: bottomRight ?? Radius.zero,
  );
}