unofficial_jisho_api_dart/example/phrase_search_example.dart

10 lines
276 B
Dart

import 'dart:convert';
import 'package:unofficial_jisho_api/unofficial_jisho_api.dart';
final jisho = JishoApi();
final encoder = JsonEncoder.withIndent(' ');
void main() async {
await jisho.searchForPhrase('反対').then((data) {
print(encoder.convert(data));
});
}