init method

  1. @mustCallSuper
  2. @Deprecated('使用构造器初始化代替')
FutureOr<void> init()

初始化

deprecated: 因为这个init会跟随initState被执行, 在整个生命周期中有可能被执行多次, 已经不适合初始化这个语义

Implementation

@mustCallSuper
@Deprecated('使用构造器初始化代替')
FutureOr<void> init() async {}