Skip to content

Commit 74de557

Browse files
authored
Avoid "get" for regular methods. (#766)
1 parent b058532 commit 74de557

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

pkgs/cronet_http/example/lib/main.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class _HomePageState extends State<HomePage> {
5353

5454
// Get the list of books matching `query`.
5555
// The `get` call will automatically use the `client` configurated in `main`.
56-
Future<List<Book>> _getBooks(String query) async {
56+
Future<List<Book>> _findMatchingBooks(String query) async {
5757
final response = await get(
5858
Uri.https(
5959
'www.googleapis.com',
@@ -74,7 +74,7 @@ class _HomePageState extends State<HomePage> {
7474
return;
7575
}
7676

77-
final books = await _getBooks(query);
77+
final books = await _findMatchingBooks(query);
7878
setState(() {
7979
_books = books;
8080
});

pkgs/cupertino_http/example/lib/main.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class _HomePageState extends State<HomePage> {
5454

5555
// Get the list of books matching `query`.
5656
// The `get` call will automatically use the `client` configurated in `main`.
57-
Future<List<Book>> _getBooks(String query) async {
57+
Future<List<Book>> _findMatchingBooks(String query) async {
5858
final response = await get(
5959
Uri.https(
6060
'www.googleapis.com',
@@ -75,7 +75,7 @@ class _HomePageState extends State<HomePage> {
7575
return;
7676
}
7777

78-
final books = await _getBooks(query);
78+
final books = await _findMatchingBooks(query);
7979
setState(() {
8080
_books = books;
8181
});

0 commit comments

Comments
 (0)