enable avoid_equals_and_hash_code_on_mutable_classes (#52507)
This commit is contained in:
committed by
GitHub
parent
80bc3f4a3c
commit
f5a9902577
@@ -18,8 +18,9 @@ int sortFilesByPath (FileSystemEntity a, FileSystemEntity b) {
|
||||
}
|
||||
|
||||
/// Simple data class to hold parsed locale. Does not promise validity of any data.
|
||||
@immutable
|
||||
class LocaleInfo implements Comparable<LocaleInfo> {
|
||||
LocaleInfo({
|
||||
const LocaleInfo({
|
||||
this.languageCode,
|
||||
this.scriptCode,
|
||||
this.countryCode,
|
||||
|
||||
@@ -260,6 +260,7 @@ List<Point<double>> parsePoints(String points) {
|
||||
}
|
||||
|
||||
/// Data for a single animation frame.
|
||||
@immutable
|
||||
class FrameData {
|
||||
const FrameData(this.size, this.paths);
|
||||
|
||||
@@ -285,6 +286,7 @@ class FrameData {
|
||||
}
|
||||
|
||||
/// Represents an SVG path element.
|
||||
@immutable
|
||||
class SvgPath {
|
||||
const SvgPath(this.id, this.commands, {this.opacity = 1.0});
|
||||
|
||||
@@ -348,6 +350,7 @@ class SvgPath {
|
||||
/// * "Z" => SvgPathCommand('Z', [])
|
||||
/// * "C 1.0, 1.0 2.0, 2.0 3.0, 3.0" SvgPathCommand('C', [Point(1.0, 1.0),
|
||||
/// Point(2.0, 2.0), Point(3.0, 3.0)])
|
||||
@immutable
|
||||
class SvgPathCommand {
|
||||
const SvgPathCommand(this.type, this.points);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user