Choice.withText constructor

Choice.withText({
  1. String? id,
  2. required String text,
})

Implementation

new withText({String? id, required this.text}) : id = id ?? const Uuid().v4();