decodeBorderRadiusGeometry function

BorderRadiusGeometry? decodeBorderRadiusGeometry(
  1. dynamic data
)

Implementation

BorderRadiusGeometry? decodeBorderRadiusGeometry(dynamic data) {
  if (data == null) {
    return null;
  }

  return BorderRadius.only(
    topLeft: decodeRadius(data['topLeft']),
    topRight: decodeRadius(data['topRight']),
    bottomLeft: decodeRadius(data['bottomLeft']),
    bottomRight: decodeRadius(data['bottomRight']),
  );
}