SingleSegment constructor
const
SingleSegment(
- String title, {
- Key? key,
- TextStyle titleStyle = const TextStyle(fontSize: 15, color: Colors.white),
- SegmentPos pos = SegmentPos.left,
- VoidCallback? onTap,
- 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);