1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2025-06-19 00:05:16 +00:00

Allow to create new choices on survey on its creation

This commit is contained in:
2020-05-18 17:58:54 +02:00
parent ef0ae2a586
commit b4465cc70c
3 changed files with 23 additions and 4 deletions

View File

@ -12,12 +12,15 @@ import 'package:meta/meta.dart';
class NewSurvey {
final String question;
final Set<String> answers;
final bool allowNewChoicesCreation;
const NewSurvey({
@required this.question,
@required this.answers,
@required this.allowNewChoicesCreation,
}) : assert(question != null),
assert(answers.length > 1);
assert(answers.length > 1),
assert(allowNewChoicesCreation != null);
}
class NewPost {