We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AssetBundlePictureKey
I have code using classes like AssetBundlePictureKey, ExactAssetPicture, etc. But I can't seem to find any migration guide for that code?
ExactAssetPicture
Can someone help me?
class DynamicAssetPicture extends ExactAssetPicture { final int cacheHash; DynamicAssetPicture( super.assetName, super.decoderBuilder, this.cacheHash, ); @override Future<OverrideSvgKey> obtainKey(PictureConfiguration picture) { return SynchronousFuture<OverrideSvgKey>( OverrideSvgKey( bundle: bundle ?? picture.bundle ?? rootBundle, name: keyName, colorFilter: colorFilter, cacheHash: cacheHash, ), ); } @override bool operator ==(Object other) { if (other is DynamicAssetPicture) { return cacheHash == other.cacheHash; } return false; } @override int get hashCode => Object.hash(super.hashCode, cacheHash); } class OverrideSvgKey extends AssetBundlePictureKey { final int cacheHash; const OverrideSvgKey({ required super.bundle, required super.name, super.colorFilter, required this.cacheHash, }) : super( theme: const SvgTheme(), ); @override bool operator ==(dynamic other) => hashCode == other.hashCode; @override int get hashCode => Object.hash(super.hashCode, cacheHash); }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I have code using classes like
AssetBundlePictureKey
,ExactAssetPicture
, etc. But I can't seem to find any migration guide for that code?Can someone help me?
The text was updated successfully, but these errors were encountered: