watch method

FormController<TModel> watch(
  1. RefHasApp ref, {
  2. bool? autoDisposeWhenUnreferenced,
})

Get FormController<TModel> while monitoring it with the widget associated with ref in the same way as ref.page.controller.

ref.page.controllerと同じようにrefに関連するウィジェットで監視を行いつつFormController<TModel>を取得します。

Implementation

FormController<TModel> watch(
  RefHasApp ref, {
  bool? autoDisposeWhenUnreferenced,
}) {
  return ref.app.form(
    this,
    autoDisposeWhenUnreferenced: autoDisposeWhenUnreferenced,
  );
}