watch method

TController watch(
  1. RefHasApp ref
)

Get TController while monitoring with widgets related to ref in the same way as ref.app.controller.

TController is retained in the app scope.

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

アプリスコープでTControllerが保持されます。

Implementation

TController watch(RefHasApp ref) {
  return ref.app.controller(this);
}