mode property

ElicitationMode get mode

The mode of this elicitation.

Implementation

ElicitationMode get mode {
  final mode = _value[Keys.mode] as String?;
  // Default to form for backward compatibility unless specified.
  if (mode == null) return ElicitationMode.form;
  return ElicitationMode.values.firstWhere((value) => value.name == mode);
}