setFillBitmapShader method

void setFillBitmapShader(
  1. Bitmap bitmap
)
inherited

Implementation

void setFillBitmapShader(Bitmap bitmap) {
  // make sure the color is not transparent
  if (isFillTransparent()) setFillColor(Colors.black);
  _fill.setBitmapShader(bitmap);
  _fills.forEach((key, value) {
    // make sure the color is not transparent
    if (value.isTransparent()) value.setColor(Colors.black);
    value.setBitmapShader(bitmap);
  });
}