Enable asset transformation for flutter build for iOS, Android, Windows, MacOS, Linux, and web (also flutter run without hot reload support) (#143815)

See title. These are are the platforms that use the `CopyAssets` `Target` as part of their build target.

Partial implementation of https://github.com/flutter/flutter/issues/143348.
This commit is contained in:
Andrew Kolos
2024-02-23 14:48:08 -08:00
committed by GitHub
parent 15f8ef71d9
commit 4e814a5f3c
8 changed files with 767 additions and 10 deletions

View File

@@ -498,3 +498,19 @@ bool setEquals<T>(Set<T>? a, Set<T>? b) {
}
return true;
}
/// Tests for shallow equality on two lists.
bool listEquals<T>(List<T> a, List<T> b) {
if (identical(a, b)) {
return true;
}
if (a.length != b.length) {
return false;
}
for (int index = 0; index < a.length; index++) {
if (a[index] != b[index]) {
return false;
}
}
return true;
}