fromModel method

void fromModel(
  1. M model
)

Converts the form group from a model of type M.

Implementation

void fromModel(M model) {
  if (model is Map<String, dynamic>) {
    setValue(model, notify: false);
    refreshAll();
    notifyListeners();
    return;
  }
  throw UnsupportedError(
    'fromModel() não implementado para $runtimeType.',
  );
}