tryDecode static method

Map<String, dynamic>? tryDecode(
  1. String token
)

Returns null if the token is not valid

Implementation

static Map<String, dynamic>? tryDecode(String token) {
  try {
    return decode(token);
  } catch (error) {
    return null;
  }
}