keys method

void keys({
  1. String? id,
  2. String? label,
  3. String? value,
  4. String? type,
})

Assigns the names for the 'label' field and the 'value' field.

Implementation

void keys({String? id, String? label, String? value, String? type}) {
  if (id != null && id.isNotEmpty) {
    _id = id;
  }
  if (label != null && label.isNotEmpty) {
    _label = label;
  }
  if (value != null && value.isNotEmpty) {
    _value = value;
  }
  if (type != null && type.isNotEmpty) {
    _type = type;
  }
}