jp_prefecture 2.0.0 copy "jp_prefecture: ^2.0.0" to clipboard
jp_prefecture: ^2.0.0 copied to clipboard

A library that converts Japanese prefecture codes and prefecture names.

example/lib/main.dart

import 'package:jp_prefecture/jp_prefecture.dart';

void main() {
  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); // => '都'
}
4
likes
130
pub points
59%
popularity

Publisher

unverified uploader

A library that converts Japanese prefecture codes and prefecture names.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on jp_prefecture