[roll] Update third-party dart packages
Roller-URL: https://ci.chromium.org/b/8790396262124565809
Roller-Owners: flutter-on-fuchsia-team@google.com, godofredoc@google.com
CQ-Do-Not-Cancel-Tryjobs: true
Change-Id: I9fcdcaeb7fc744ecd4d347259c8e6309fba145ff
Reviewed-on: https://fuchsia-review.googlesource.com/c/third_party/dart-pkg/+/795424
Commit-Queue: GI Roller <global-integration-roller@fuchsia-infra.iam.gserviceaccount.com>
diff --git a/flutter_image/BUILD.gn b/flutter_image/BUILD.gn
index d011815..76002c0 100644
--- a/flutter_image/BUILD.gn
+++ b/flutter_image/BUILD.gn
@@ -1,4 +1,4 @@
-# This file is generated by package_importer.py for flutter_image-4.1.4
+# This file is generated by package_importer.py for flutter_image-4.1.5
import("//build/dart/dart_library.gni")
diff --git a/flutter_image/CHANGELOG.md b/flutter_image/CHANGELOG.md
index 7413350..1a2b63e 100644
--- a/flutter_image/CHANGELOG.md
+++ b/flutter_image/CHANGELOG.md
@@ -1,3 +1,7 @@
+## 4.1.5
+
+* Removes use of `runtimeType.toString()`.
+
## 4.1.4
* Ignores lint warnings from new changes in Flutter master.
diff --git a/flutter_image/lib/network.dart b/flutter_image/lib/network.dart
index 109634d..841d9ad 100644
--- a/flutter_image/lib/network.dart
+++ b/flutter_image/lib/network.dart
@@ -214,8 +214,8 @@
FlutterError.onError!(FlutterErrorDetails(
exception: lastFailure!,
library: 'package:flutter_image',
- context:
- ErrorDescription('$runtimeType failed to load ${instructions.uri}'),
+ context: ErrorDescription(
+ '${objectRuntimeType(this, 'NetworkImageWithRetry')} failed to load ${instructions.uri}'),
));
}
@@ -236,7 +236,8 @@
int get hashCode => Object.hash(url, scale);
@override
- String toString() => '$runtimeType("$url", scale: $scale)';
+ String toString() =>
+ '${objectRuntimeType(this, 'NetworkImageWithRetry')}("$url", scale: $scale)';
}
/// This function is called to get [FetchInstructions] to fetch an image.
@@ -295,7 +296,7 @@
@override
String toString() {
- return '$runtimeType(\n'
+ return '${objectRuntimeType(this, 'FetchInstructions')}(\n'
' shouldGiveUp: $shouldGiveUp\n'
' timeout: $timeout\n'
' uri: $uri\n'
@@ -332,7 +333,7 @@
@override
String toString() {
- return '$runtimeType(\n'
+ return '${objectRuntimeType(this, 'FetchFailure')}(\n'
' attemptCount: $attemptCount\n'
' httpStatusCode: $httpStatusCode\n'
' totalDuration: $totalDuration\n'
diff --git a/flutter_image/pubspec.yaml b/flutter_image/pubspec.yaml
index 3fa9421..340d655 100644
--- a/flutter_image/pubspec.yaml
+++ b/flutter_image/pubspec.yaml
@@ -3,7 +3,7 @@
Image utilities for Flutter: improved network providers, effects, etc.
repository: https://github.com/flutter/packages/tree/main/packages/flutter_image
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+flutter_image%22
-version: 4.1.4
+version: 4.1.5
environment:
sdk: ">=2.12.0 <3.0.0"