Back to Flutter Boost

onContainerShow method

doc/api/flutter_boost_app/FlutterBoostAppState/onContainerShow.html

5.0.2586 B
Original Source

onContainerShow method

voidonContainerShow(

  1. CommonParams params

)

Implementation

void onContainerShow(CommonParams params) {
  final container = _findContainerByUniqueId(params.uniqueId);
  BoostLifecycleBinding.instance.containerDidShow(container);

  // Try to complete pending native result when container closed.
  final topPage = topContainer?.topPage?.pageInfo?.uniqueId;
  assert(topPage != null);
  Future<void>.delayed(
    const Duration(seconds: 1),
    () => _completePendingNativeResultIfNeeded(topPage),
  );
}