initStateAndTicker method

  1. @mustCallSuper
void initStateAndTicker(
  1. covariant AssetPickerViewerState<Asset, Path> state,
  2. TickerProvider v
)

Call when viewer is calling State.initState. 当预览器调用 State.initState 时注册 State

Implementation

@mustCallSuper
void initStateAndTicker(
  covariant AssetPickerViewerState<Asset, Path> state,
  TickerProvider v, // TODO(Alex): Remove this in the next major version.
) {
  initAnimations(state);
}