KSegmentView constructor

const KSegmentView(
  1. List<String> segments,
  2. CardBuilder flipBuilder, {
  3. Key? key,
  4. SegmentPos initialSelected = SegmentPos.left,
  5. Size boundary = Size.zero,
  6. Color backgroundColor = Colors.black87,
  7. Color borderColor = Colors.white,
  8. TextStyle titleStyle = const TextStyle(fontSize: 15, color: Colors.white),
  9. double borderRadius = 25,
  10. double borderThick = 2,
  11. ValueChanged<SegmentPos>? onChanged,
})

Implementation

const KSegmentView(
  this.segments,
  this.flipBuilder, {
  Key? key,
  this.initialSelected = SegmentPos.left,
  this.boundary = Size.zero,
  this.backgroundColor = Colors.black87,
  this.borderColor = Colors.white,
  this.titleStyle = const TextStyle(fontSize: 15, color: Colors.white),
  this.borderRadius = 25,
  this.borderThick = 2,
  this.onChanged,
})  : assert(segments.length >= 2),
      super(key: key);