updateTransitioningState static method

Future<void> updateTransitioningState(
  1. bool state
)

Updates the current transitioning state if it has changed.

This method checks whether the state has changed from its previous value. If the value remains the same, the method returns early to avoid unnecessary processing.

If the state has changed, it updates the internal isTransitioningState variable and notifies the native side by invoking the platform-specific method updateTransitioningState via a method channel, passing the new state as a parameter.

@param state The new transitioning state to set.

Implementation

static Future<void> updateTransitioningState(bool state) async {
  await DevRevSDKPlatform.instance.updateTransitioningState(state);
}