commit<T> method

T commit<T>()

commit all pending changes to the instance and return it

Implementation

T commit<T>() {
  ValuedWidgetContext context = ValuedWidgetContext(mapper: this);
  for ( Operation operation in operations)
    (operation.source as TypeProperty).commit(context);

  changes = 0;

  return instance as T;
}