commit method

void commit()

Implementation

void commit() {
  for (final entry in _drafts.entries) {
    _committed[entry.key] = entry.value;
    final attribute = _attributes[entry.key];
    if (attribute is DraftModeFormAttribute<dynamic>) {
      attribute.value = entry.value;
    }
  }
}