re-re-enable lint unnecessary_const (#20103)

This commit is contained in:
Alexandre Ardhuin
2018-08-02 12:02:32 +02:00
committed by GitHub
parent ffbaa97b50
commit eda03e2586
561 changed files with 41037 additions and 41036 deletions

View File

@@ -73,7 +73,7 @@ class PathAnimation {
factory PathAnimation.fromFrameData(List<FrameData> frames, int pathIdx) {
if (frames.isEmpty)
return const PathAnimation(const <PathCommandAnimation>[], opacities: const <double>[]);
return const PathAnimation(<PathCommandAnimation>[], opacities: <double>[]);
final List<PathCommandAnimation> commands = <PathCommandAnimation>[];
for (int commandIdx = 0; commandIdx < frames[0].paths[pathIdx].commands.length; commandIdx += 1) {
@@ -386,7 +386,7 @@ class SvgPathCommand {
}
class SvgPathCommandBuilder {
static const Map<String, Null> kRelativeCommands = const <String, Null> {
static const Map<String, Null> kRelativeCommands = <String, Null> {
'c': null,
'l': null,
'm': null,