copyWith method

MinecraftAccountProfile copyWith({
  1. String? username,
  2. String? uuid,
  3. String? accessToken,
  4. DateTime? expiresAt,
})

Implementation

MinecraftAccountProfile copyWith({
  String? username,
  String? uuid,
  String? accessToken,
  DateTime? expiresAt,
}) {
  return MinecraftAccountProfile(
    id: username ?? id,
    name: uuid ?? name,
    skins: skins,
    capes: capes,
    profileActions: profileActions,
  );
}