SegmentDisplay constructor

const SegmentDisplay({
  1. Key? key,
  2. required String value,
  3. required Map<String, int> characterMap,
  4. double? size,
  5. SegmentStyle? segmentStyle,
  6. int? characterCount,
  7. double? characterSpacing,
  8. Color? backgroundColor,
})

Implementation

const SegmentDisplay({
  Key? key,
  required this.value,
  required this.characterMap,
  double? size,
  SegmentStyle? segmentStyle,
  this.characterCount,
  double? characterSpacing,
  Color? backgroundColor,
})  : size = size ?? 10.0,
      segmentStyle = segmentStyle ?? const DefaultSegmentStyle(),
      characterSpacing = characterSpacing ?? 7.0,
      backgroundColor = backgroundColor ?? const Color(0xff000000),
      super(key: key);