Skip to content

Commit

Permalink
Fix deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
renefloor committed Aug 31, 2022
1 parent 0f76edf commit f611c96
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
Expand Up @@ -91,6 +91,8 @@ class CachedNetworkImageProvider
);
}

@Deprecated(
'_loadAsync is deprecated, use loadBuffer instead, see https://docs.flutter.dev/release/breaking-changes/image-provider-load-buffer')
Stream<ui.Codec> _loadAsync(
image_provider.CachedNetworkImageProvider key,
StreamController<ImageChunkEvent> chunkEvents,
Expand Down Expand Up @@ -163,7 +165,7 @@ class CachedNetworkImageProvider
}

@override
int get hashCode => hashValues(cacheKey ?? url, scale, maxHeight, maxWidth);
int get hashCode => Object.hash(cacheKey ?? url, scale, maxHeight, maxWidth);

@override
String toString() => '$runtimeType("$url", scale: $scale)';
Expand Down
@@ -1,3 +1,5 @@
// ignore_for_file: deprecated_member_use_from_same_package

import 'dart:async';
import 'dart:typed_data';
import 'dart:ui' as ui;
Expand Down
@@ -1,3 +1,5 @@
// ignore_for_file: deprecated_member_use_from_same_package

import 'dart:async';
import 'dart:typed_data';

Expand Down

0 comments on commit f611c96

Please sign in to comment.