copyTo<T extends dynamic> method

T copyTo<T extends dynamic>(
  1. T target,
  2. dynamic keyAndInitialValues
)

Copy the data stored in the form and context to target.

Only the data specified in the key of keyAndInitialValues will be copied.

If there is no data for the specified key, the value of keyAndInitialValues is copied as the initial value.

Implementation

T copyTo<T extends DynamicMap>(T target, DynamicMap keyAndInitialValues) {
  target.copyFrom(_context, keyAndInitialValues);
  return target;
}