getShape function
Method To return the shape of the play icon
Implementation
ShapeBorder getShape(PlayIconShapeType shapeType) {
switch (shapeType) {
case PlayIconShapeType.roundedRectangle:
return RoundedRectangleBorder(borderRadius: BorderRadius.circular(12));
case PlayIconShapeType.square:
return const RoundedRectangleBorder();
case PlayIconShapeType.circular:
return const CircleBorder();
}
}