mobileSkipPreVerified function

Map<String, bool>? mobileSkipPreVerified({
  1. Map<String, bool>? existing,
  2. required bool skipping,
  3. required String mobileModuleSlug,
})

The pre_verified map for a start: merges any consumer-supplied existing map with the mobile-skip entry when skipping. Returns existing unchanged when not skipping — so a remount with the skip off keeps the consumer's own preVerified (and yields null → the wire omits pre_verified).

Implementation

Map<String, bool>? mobileSkipPreVerified({
  Map<String, bool>? existing,
  required bool skipping,
  required String mobileModuleSlug,
}) {
  if (!skipping) return existing;
  return {...?existing, mobileModuleSlug: true};
}