SurveyOption constructor
SurveyOption({})
Constructor for SurveyOption.
Parameters:
- id: The unique identifier for the option.
- title: The display title for the option.
- description: An optional description for the option.
- icon: An optional icon for the option.
Implementation
SurveyOption({
required this.id,
required this.title,
this.description,
this.icon,
this.textAlign = TextAlign.start,
}) {
if (description == null && icon == null) {
textAlign = TextAlign.center;
}
}