whenRequested method

void whenRequested(
  1. Permission p,
  2. PermissionStatus answer, [
  3. List<PermissionStatus> more = const []
])

Queues the user's answer(s) to the next request(s) for p.

Implementation

void whenRequested(
  Permission p,
  PermissionStatus answer, [
  List<PermissionStatus> more = const [],
]) => _answers.putIfAbsent(p, () => []).addAll([answer, ...more]);