roles property Null safety

List<String> roles

Implementation

List<String> get roles => claims["role"] == null
    ? List<String>.empty()
    : claims["role"] is String
        ? <String>[claims["role"].toString()]
        : List<String>.from(claims["role"] as Iterable<dynamic>);