main function

void main()

Implementation

void main() async {
  WidgetsFlutterBinding.ensureInitialized();

  // Start the app runner — fetches workflow config before any UI is shown.
  await AppRunnerService.run(
    workflowId: '6a7af9839dcb295978e7bd17',
    name: 'John Doe', // Compulsory
    email: 'johndoe@example.com', // Optional
    phoneNumber: '+2348012345678', // Optional
    dob: '1990-01-01', // Optional
  );

  runApp(const MyApp());
}