getShape function

ShapeBorder getShape(
  1. PlayIconShapeType shapeType
)

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();
  }
}