OptionElement constructor Null safety

OptionElement(
  1. {String data: '',
  2. String value: '',
  3. bool selected: false}
)

Implementation

factory OptionElement(
    {String data: '', String value: '', bool selected: false}) {
  return new OptionElement._(data, value, null, selected);
}