payloadBorderRadius function

JsonMap payloadBorderRadius({
  1. double? topLeft,
  2. double? topRight,
  3. double? bottomLeft,
  4. double? bottomRight,
})

Sparse per-corner BorderRadius payload; omits unset corners.

Implementation

JsonMap payloadBorderRadius({
  double? topLeft,
  double? topRight,
  double? bottomLeft,
  double? bottomRight,
}) {
  return {
    'topLeft': ?topLeft,
    'topRight': ?topRight,
    'bottomLeft': ?bottomLeft,
    'bottomRight': ?bottomRight,
  };
}