maybePick method

String? maybePick(
  1. Webservice service
)

Returns the token value for the given service or null if not found.

Implementation

String? maybePick(Webservice service) {
  return firstWhereOrNull(
    (token) => token.webservice == service,
  )?.token;
}