Update user.dart

This commit is contained in:
Tobe O 2017-02-12 19:09:47 -05:00 committed by GitHub
parent 50e530e2f1
commit 301939bf39

View file

@ -26,11 +26,8 @@ class User extends Model with _$UserSerializerMixin {
this.email,
this.username,
this.password,
List<String> roles: const []}) {
Iterable<String> roles: const []}) {
this.id = id;
if (roles != null) {
this.roles.addAll(roles);
}
this.roles.addAll(roles ?? []);
}
}