SingleSegment constructor

const SingleSegment(
  1. String title, {
  2. Key? key,
  3. TextStyle titleStyle = const TextStyle(fontSize: 15, color: Colors.white),
  4. SegmentPos pos = SegmentPos.left,
  5. VoidCallback? onTap,
  6. double? borderRadius,
})

Implementation

const SingleSegment(
  this.title, {
  Key? key,
  this.titleStyle = const TextStyle(fontSize: 15, color: Colors.white),
  this.pos = SegmentPos.left,
  this.onTap,
  this.borderRadius,
}) : super(key: key);