FlScoreBar.editable constructor
const
FlScoreBar.editable({})
This named constructor sets _editable value to true and make slider visible to the user. score must be lower or equal than maxScore to make the widget work correctly. Also, maxScore must be between 2 and 8.
Implementation
const FlScoreBar.editable({
Key? key,
this.title,
required this.score,
this.textStyle,
this.highScoreColor = BaseColors.highScoreColor,
this.lowScoreColor = BaseColors.lowScoreColor,
this.averageScoreColor = BaseColors.averageScoreColor,
this.maxScore = 5,
this.onChanged,
}) : assert(score <= maxScore, 'score must be lower or equal than maxScore'),
assert(maxScore < 8 && maxScore > 2,
'maxScore must be lower than 8 and greater than 2'),
_editable = true,
super(key: key);