OnX extension Null safety

on

Methods

listenTo<T>(InjectedBaseState<T> injected, {On<void>? onSetState, On<void>? onAfterBuild, void initState()?, void dispose()?, bool shouldRebuild(SnapState<T>? snapState)?, Object? watch()?, Key? key, String? debugPrintWhenRebuild}) Widget
Listen to this Injected model and register: [...]