whenMoreThanState method

  1. @Deprecated('use [launchWhenLifecycleStateAtLeast]')
Future<LifecycleState> whenMoreThanState(
  1. LifecycleState state
)

Implementation

@Deprecated('use [launchWhenLifecycleStateAtLeast]')
Future<LifecycleState> whenMoreThanState(LifecycleState state) =>
    currentLifecycleState >= state
        ? Future.value(currentLifecycleState)
        : nextLifecycleState(state);