From a95670c34123c8a4662f3e4b66be3024ddf7b29e Mon Sep 17 00:00:00 2001 From: Thibault Deckers Date: Wed, 28 Jul 2021 17:55:30 +0900 Subject: [PATCH] static analysis fixes --- lib/widgets/viewer/info/metadata/xmp_ns/exif.dart | 2 +- lib/widgets/viewer/info/metadata/xmp_ns/google.dart | 8 ++++---- lib/widgets/viewer/info/metadata/xmp_ns/photoshop.dart | 2 +- lib/widgets/viewer/info/metadata/xmp_ns/tiff.dart | 2 +- lib/widgets/viewer/info/metadata/xmp_ns/xmp.dart | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/widgets/viewer/info/metadata/xmp_ns/exif.dart b/lib/widgets/viewer/info/metadata/xmp_ns/exif.dart index 4ec4f1cee..d3493a7b1 100644 --- a/lib/widgets/viewer/info/metadata/xmp_ns/exif.dart +++ b/lib/widgets/viewer/info/metadata/xmp_ns/exif.dart @@ -5,7 +5,7 @@ import 'package:aves/widgets/viewer/info/metadata/xmp_namespaces.dart'; class XmpExifNamespace extends XmpNamespace { static const ns = 'exif'; - XmpExifNamespace(Map rawProps) : super(ns, rawProps); + const XmpExifNamespace(Map rawProps) : super(ns, rawProps); @override String get displayTitle => 'Exif'; diff --git a/lib/widgets/viewer/info/metadata/xmp_ns/google.dart b/lib/widgets/viewer/info/metadata/xmp_ns/google.dart index fa4f8784b..906b6a893 100644 --- a/lib/widgets/viewer/info/metadata/xmp_ns/google.dart +++ b/lib/widgets/viewer/info/metadata/xmp_ns/google.dart @@ -6,7 +6,7 @@ import 'package:collection/collection.dart'; import 'package:tuple/tuple.dart'; abstract class XmpGoogleNamespace extends XmpNamespace { - XmpGoogleNamespace(String ns, Map rawProps) : super(ns, rawProps); + const XmpGoogleNamespace(String ns, Map rawProps) : super(ns, rawProps); List> get dataProps; @@ -35,7 +35,7 @@ abstract class XmpGoogleNamespace extends XmpNamespace { class XmpGAudioNamespace extends XmpGoogleNamespace { static const ns = 'GAudio'; - XmpGAudioNamespace(Map rawProps) : super(ns, rawProps); + const XmpGAudioNamespace(Map rawProps) : super(ns, rawProps); @override List> get dataProps => const [Tuple2('$ns:Data', '$ns:Mime')]; @@ -47,7 +47,7 @@ class XmpGAudioNamespace extends XmpGoogleNamespace { class XmpGDepthNamespace extends XmpGoogleNamespace { static const ns = 'GDepth'; - XmpGDepthNamespace(Map rawProps) : super(ns, rawProps); + const XmpGDepthNamespace(Map rawProps) : super(ns, rawProps); @override List> get dataProps => const [ @@ -62,7 +62,7 @@ class XmpGDepthNamespace extends XmpGoogleNamespace { class XmpGImageNamespace extends XmpGoogleNamespace { static const ns = 'GImage'; - XmpGImageNamespace(Map rawProps) : super(ns, rawProps); + const XmpGImageNamespace(Map rawProps) : super(ns, rawProps); @override List> get dataProps => const [Tuple2('$ns:Data', '$ns:Mime')]; diff --git a/lib/widgets/viewer/info/metadata/xmp_ns/photoshop.dart b/lib/widgets/viewer/info/metadata/xmp_ns/photoshop.dart index 73897fe13..c44068e93 100644 --- a/lib/widgets/viewer/info/metadata/xmp_ns/photoshop.dart +++ b/lib/widgets/viewer/info/metadata/xmp_ns/photoshop.dart @@ -5,7 +5,7 @@ import 'package:aves/widgets/viewer/info/metadata/xmp_namespaces.dart'; class XmpPhotoshopNamespace extends XmpNamespace { static const ns = 'photoshop'; - XmpPhotoshopNamespace(Map rawProps) : super(ns, rawProps); + const XmpPhotoshopNamespace(Map rawProps) : super(ns, rawProps); @override String get displayTitle => 'Photoshop'; diff --git a/lib/widgets/viewer/info/metadata/xmp_ns/tiff.dart b/lib/widgets/viewer/info/metadata/xmp_ns/tiff.dart index 5c901413f..91c1ba8a4 100644 --- a/lib/widgets/viewer/info/metadata/xmp_ns/tiff.dart +++ b/lib/widgets/viewer/info/metadata/xmp_ns/tiff.dart @@ -8,7 +8,7 @@ class XmpTiffNamespace extends XmpNamespace { @override String get displayTitle => 'TIFF'; - XmpTiffNamespace(Map rawProps) : super(ns, rawProps); + const XmpTiffNamespace(Map rawProps) : super(ns, rawProps); @override String formatValue(XmpProp prop) { diff --git a/lib/widgets/viewer/info/metadata/xmp_ns/xmp.dart b/lib/widgets/viewer/info/metadata/xmp_ns/xmp.dart index 51dd671e4..3b89e15a4 100644 --- a/lib/widgets/viewer/info/metadata/xmp_ns/xmp.dart +++ b/lib/widgets/viewer/info/metadata/xmp_ns/xmp.dart @@ -114,7 +114,7 @@ class XmpNoteNamespace extends XmpNamespace { // `xmpNote:HasExtendedXMP` is structural and should not be displayed to users static const hasExtendedXmp = '$ns:HasExtendedXMP'; - XmpNoteNamespace(Map rawProps) : super(ns, rawProps); + const XmpNoteNamespace(Map rawProps) : super(ns, rawProps); @override bool extractData(XmpProp prop) {