next method

  1. @override
Future<T> next(
  1. Function onAction, {
  2. Duration timeLimit = const Duration(seconds: 10),
})
override

Wait the next change of a RxNotifier. The timeLimit is 10 seconds by default. onAction callback execute after register listener.

Implementation

@override
Future<T> next(
  Function onAction, {
  Duration timeLimit = const Duration(seconds: 10),
}) {
  return rxNext<T>(
    this,
    onAction: onAction,
    timeLimit: timeLimit,
  );
}