forked from firka/flutter
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user