User constructor

const User({
  1. required String id,
  2. String? username,
  3. String? displayName,
  4. String? avatarUrl,
  5. String? langTag,
  6. String? location,
  7. String? timezone,
  8. String? metadata,
  9. String? facebookId,
  10. String? googleId,
  11. String? gamecenterId,
  12. String? steamId,
  13. @Default(false) bool online,
  14. @Default(0) int edgeCount,
  15. DateTime? createTime,
  16. DateTime? updateTime,
  17. String? facebookInstantGameId,
  18. String? appleId,
})

Implementation

const factory User({
  required String id,
  String? username,
  String? displayName,
  String? avatarUrl,
  String? langTag,
  String? location,
  String? timezone,
  String? metadata,
  String? facebookId,
  String? googleId,
  String? gamecenterId,
  String? steamId,
  @Default(false) bool online,
  @Default(0) int edgeCount,
  DateTime? createTime,
  DateTime? updateTime,
  String? facebookInstantGameId,
  String? appleId,
}) = _User;