last63

Untitled

Oct 29th, 2025
29
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.28 KB | None | 0 0
  1. class Pokemon {
  2. String name;
  3. String type;
  4. String description;
  5. int level;
  6. int hp;
  7. int attack;
  8. int defense;
  9. String imageAsset;
  10. List<String> imageUrls;
  11.  
  12. Pokemon({
  13. required this.name,
  14. required this.type,
  15. required this.description,
  16. required this.level,
  17. required this.hp,
  18. required this.attack,
  19. required this.defense,
  20. required this.imageAsset,
  21. required this.imageUrls,
  22. });
  23. }
  24.  
  25. var pokemonList = [
  26. Pokemon(
  27. name: 'Pikachu',
  28. type: 'Electric',
  29. description:
  30. 'Pikachu adalah Pokémon tipe listrik yang dikenal karena kemampuan menghasilkan listrik melalui pipinya. Ia sangat populer dan merupakan maskot Pokémon.',
  31. level: 25,
  32. hp: 120,
  33. attack: 55,
  34. defense: 40,
  35. imageAsset: 'images/pikachu.png',
  36. imageUrls: [
  37. 'https://assets.pokemon.com/assets/cms2/img/pokedex/full/025.png',
  38. 'https://img.pokemondb.net/artwork/large/pikachu.jpg',
  39. 'https://static.wikia.nocookie.net/pokemon/images/0/0d/Pikachu.png'
  40. ],
  41. ),
  42. Pokemon(
  43. name: 'Charmander',
  44. type: 'Fire',
  45. description:
  46. 'Charmander adalah Pokémon tipe api yang memiliki ekor dengan api menyala di ujungnya. Api itu menunjukkan kekuatan dan semangat hidupnya.',
  47. level: 20,
  48. hp: 110,
  49. attack: 52,
  50. defense: 43,
  51. imageAsset: 'images/charmander.png',
  52. imageUrls: [
  53. 'https://assets.pokemon.com/assets/cms2/img/pokedex/full/004.png',
  54. 'https://img.pokemondb.net/artwork/large/charmander.jpg',
  55. 'https://static.wikia.nocookie.net/pokemon/images/7/73/Charmander.png',
  56. ],
  57. ),
  58. Pokemon(
  59. name: 'Bulbasaur',
  60. type: 'Grass/Poison',
  61. description:
  62. 'Bulbasaur adalah Pokémon tipe rumput dan racun yang memiliki tanaman di punggungnya. Tanaman tersebut tumbuh seiring perkembangan Bulbasaur.',
  63. level: 18,
  64. hp: 105,
  65. attack: 49,
  66. defense: 49,
  67. imageAsset: 'images/bulbasaur.png',
  68. imageUrls: [
  69. 'https://assets.pokemon.com/assets/cms2/img/pokedex/full/001.png',
  70. 'https://img.pokemondb.net/artwork/large/bulbasaur.jpg',
  71. 'https://static.wikia.nocookie.net/pokemon/images/2/21/Bulbasaur.png',
  72. ],
  73. ),
  74. Pokemon(
  75. name: 'Squirtle',
  76. type: 'Water',
  77. description:
  78. 'Squirtle adalah Pokémon tipe air yang dikenal karena tempurung kerasnya dan kemampuan menembakkan air dari mulutnya dengan tekanan tinggi.',
  79. level: 17,
  80. hp: 108,
  81. attack: 48,
  82. defense: 65,
  83. imageAsset: 'images/squirtle.png',
  84. imageUrls: [
  85. 'https://assets.pokemon.com/assets/cms2/img/pokedex/full/007.png',
  86. 'https://img.pokemondb.net/artwork/large/squirtle.jpg',
  87. 'https://static.wikia.nocookie.net/pokemon/images/3/39/Squirtle.png',
  88. ],
  89. ),
  90. Pokemon(
  91. name: 'Eevee',
  92. type: 'Normal',
  93. description:
  94. 'Eevee adalah Pokémon tipe normal yang memiliki potensi untuk berevolusi menjadi berbagai bentuk Pokémon dengan tipe berbeda.',
  95. level: 22,
  96. hp: 115,
  97. attack: 55,
  98. defense: 50,
  99. imageAsset: 'images/eevee.png',
  100. imageUrls: [
  101. 'https://assets.pokemon.com/assets/cms2/img/pokedex/full/133.png',
  102. 'https://img.pokemondb.net/artwork/large/eevee.jpg',
  103. 'https://static.wikia.nocookie.net/pokemon/images/1/15/Eevee.png',
  104. ],
  105. ),
  106. ];
  107.  
Advertisement
Add Comment
Please, Sign In to add comment