knownAccess function

AccessSnapshot? knownAccess(
  1. WidgetRef ref
)

The account's access as far as it is actually known, for marking pickers.

Null while it loads, when it failed, and whenever this build sells nothing. storeAccess answers an empty snapshot in that last case without asking the server, and an empty snapshot taken as fact would mark every paid opponent locked for an account that may already own it.

Implementation

AccessSnapshot? knownAccess(WidgetRef ref) => ref.watch(storeAvailableProvider)
    ? ref.watch(storeAccessProvider).value
    : null;