customCapFromBitmap static method

Cap customCapFromBitmap(
  1. BitmapDescriptor bitmapDescriptor, {
  2. double refWidth = 10,
})

Implementation

static Cap customCapFromBitmap(
  BitmapDescriptor bitmapDescriptor, {
  double refWidth = 10,
}) {
  if (refWidth < 0.0) return roundCap;
  return Cap._(<dynamic>['customCap', bitmapDescriptor.toJson(), refWidth]);
}