onFinished method

  1. @nonVirtual
Future<void> onFinished(
  1. BuildContext context
)

Implementation

@nonVirtual
Future<void> onFinished(BuildContext context) async {
  await doWork();
  WidgetsBinding.instance
      .addPostFrameCallback((_) => Navigator.of(context).maybePop());
}