Skip to content

Commit

Permalink
Changed late to final in client assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
brianquinlan committed Jan 4, 2024
1 parent a623f09 commit 10a7630
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pkgs/cronet_http/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ import 'package:http/http.dart';
import 'package:http/io_client.dart';
void main() async {
late Client httpClient;
final Client httpClient;
if (Platform.isAndroid) {
final engine = CronetEngine.build(
cacheMode: CacheMode.memory,
Expand Down
2 changes: 1 addition & 1 deletion pkgs/cronet_http/example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import 'package:provider/provider.dart';
import 'book.dart';

void main() {
late Client httpClient;
final Client httpClient;
if (Platform.isAndroid) {
final engine = CronetEngine.build(
cacheMode: CacheMode.memory,
Expand Down
2 changes: 1 addition & 1 deletion pkgs/cupertino_http/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import 'package:http/http.dart';
import 'package:http/io_client.dart';
void main() async {
late Client httpClient;
final Client httpClient;
if (Platform.isIOS || Platform.isMacOS) {
final config = URLSessionConfiguration.ephemeralSessionConfiguration()
..cache = URLCache.withCapacity(memoryCapacity: 2 * 1024 * 1024)
Expand Down
2 changes: 1 addition & 1 deletion pkgs/cupertino_http/example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import 'package:provider/provider.dart';
import 'book.dart';

void main() {
late Client httpClient;
final Client httpClient;
if (Platform.isIOS || Platform.isMacOS) {
final config = URLSessionConfiguration.ephemeralSessionConfiguration()
..cache = URLCache.withCapacity(memoryCapacity: 2 * 1024 * 1024)
Expand Down

0 comments on commit 10a7630

Please sign in to comment.