jp_prefecture

Last updated:

0 purchases

jp_prefecture Image
jp_prefecture Images
Add to Cart

Description:

jp prefecture

jp_prefecture #
A library that converts Japanese prefecture codes and prefecture names.
Usage #
Find a Japanese prefecture by prefecture code. #
final pref = JpPrefecture.findByCode(13);
if (pref == null) {
return;
}
print(pref.code); // => 13
print(pref.name); // => '東京都'
print(pref.nameE); // => 'Tokyo'
print(pref.nameH); // => 'とうきょうと'
print(pref.nameK); // => 'トウキョウト'
print(pref.area); // => '関東'
print(pref.type); // => '都'
copied to clipboard
Find a Japanese prefecture by prefecture name. #
final pref = JpPrefecture.findByName('東京都');
if (pref == null) {
return;
}
print(pref.code); // => 13
print(pref.name); // => '東京都'
print(pref.nameE); // => 'Tokyo'
print(pref.nameH); // => 'とうきょうと'
print(pref.nameK); // => 'トウキョウト'
print(pref.area); // => '関東'
print(pref.type); // => '都'
copied to clipboard
Get all Japanese prefectures. #
final prefs = JpPrefecture.all;
print(prefs.first.code); // => 1
print(prefs.first.name); // => '北海道'
print(prefs.first.nameE); // => 'Hokkaido'
print(prefs.first.nameH); // => 'ほっかいどう'
print(prefs.first.nameK); // => 'ホッカイドウ'
print(prefs.first.area); // => '北海道'
print(prefs.first.type); // => '道'
copied to clipboard

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.