shape property

BoxShape shape
final

The shape of the image container. if height and width are equal and shape is BoxShape.circle, but image is not circular then put MyImage under a Column or Row example:

Column(
   children: [
     MyImage.asset(
       'asset/image.png',
       height: 200,
       width: 200,
       fit: BoxFit.cover,
       shape: BoxShape.circle,
       backgroundColor: Colors.grey,
     ),
   ],
)

Implementation

final BoxShape shape;