MaterialShapeBorder constructor

const MaterialShapeBorder({
  1. required RoundedPolygon shape,
  2. BorderSide side = BorderSide.none,
  3. double squash = 0,
})

Creates a MaterialShapeBorder.

Implementation

const MaterialShapeBorder({required this.shape, super.side, this.squash = 0})
  : assert(squash >= 0 && squash <= 1, 'squash has to be in range [0, 1]');