AuthPrincipal constructor

AuthPrincipal({
  1. required String id,
  2. List<String> roles = const <String>[],
  3. Map<String, dynamic>? attributes,
})

Implementation

AuthPrincipal({
  required this.id,
  this.roles = const <String>[],
  Map<String, dynamic>? attributes,
}) : attributes = attributes == null
         ? const <String, dynamic>{}
         : Map<String, dynamic>.from(attributes);