title: How to crop circular(or Square or Hexagon ) area from canvas in Flutter
body: <p>I want to crop a rectangular <strong>image-file</strong> and make it circular or square or hexagon shape and <strong>save it as image-file locally</strong>. I have a bitmap and I want to crop a circular or hexagon region from this bitmap. All pixels outside the circle should be transparent. How can I do this?</p>
  
  <p><a href="https://i.stack.imgur.com/0WmB0.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0WmB0.png" alt="enter image description here"></a></p>
  
  <p>I found the similar question in <a href="https://stackoverflow.com/questions/11932805/how-to-crop-circular-area-from-bitmap-in-android">android</a> platform. <em>But unable to find a good resource that really help or direct me to achieve this in flutter.</em> Please share me the idea to achieve this result.</p>