unofficial_jisho_api_dart/example/phrase_search_example.dart

10 lines
280 B
Dart
Raw Permalink Normal View History

2020-06-23 16:55:39 +02:00
import 'dart:convert';
import 'package:unofficial_jisho_api/unofficial_jisho_api.dart';
final jisho = JishoApi();
final encoder = JsonEncoder.withIndent(' ');
void main() async {
2020-06-24 17:01:39 +02:00
await jisho.searchForPhrase('反対').then((result) {
print(encoder.convert(result));
2020-06-23 16:55:39 +02:00
});
}