listenTo<U extends ChangeNotifier> method

  1. @protected
U listenTo<U extends ChangeNotifier>({
  1. BuildContext? context,
  2. U? notifier,
  3. String? name,
})

Get a registered ChangeNotifier and adds a ViewModel.buildView listener to U.

See Model.listenTo for more details.

Implementation

@protected
U listenTo<U extends ChangeNotifier>(
        {BuildContext? context, U? notifier, String? name}) =>
    viewModel.listenTo<U>(context: context, notifier: notifier, name: name);