appHash method

  1. @override
Future<String?> appHash()
override

The 11-character app hash for this build, or null when it cannot be computed or the platform has no automatic capture.

Report a malformed value as null. The session re-checks the format anyway and drops a bad one rather than failing a paid verification with it.

Implementation

@override
Future<String?> appHash() async {
  hashCalls++;
  final failure = failsWith;
  if (failure != null) throw failure;
  return hash;
}