getFields method

Iterable<OptionField> getFields()

Implementation

Iterable<OptionField> getFields() sync* {
  for (Option i in options) {
    if (i is OptionGroup) {
      yield* i.getFields();
    } else if (i is OptionField) {
      yield i;
    }
  }
}