static analysis fixes

This commit is contained in:
Thibault Deckers 2021-07-28 17:55:30 +09:00
parent 62c199c745
commit a95670c341
5 changed files with 8 additions and 8 deletions

View file

@ -5,7 +5,7 @@ import 'package:aves/widgets/viewer/info/metadata/xmp_namespaces.dart';
class XmpExifNamespace extends XmpNamespace { class XmpExifNamespace extends XmpNamespace {
static const ns = 'exif'; static const ns = 'exif';
XmpExifNamespace(Map<String, String> rawProps) : super(ns, rawProps); const XmpExifNamespace(Map<String, String> rawProps) : super(ns, rawProps);
@override @override
String get displayTitle => 'Exif'; String get displayTitle => 'Exif';

View file

@ -6,7 +6,7 @@ import 'package:collection/collection.dart';
import 'package:tuple/tuple.dart'; import 'package:tuple/tuple.dart';
abstract class XmpGoogleNamespace extends XmpNamespace { abstract class XmpGoogleNamespace extends XmpNamespace {
XmpGoogleNamespace(String ns, Map<String, String> rawProps) : super(ns, rawProps); const XmpGoogleNamespace(String ns, Map<String, String> rawProps) : super(ns, rawProps);
List<Tuple2<String, String>> get dataProps; List<Tuple2<String, String>> get dataProps;
@ -35,7 +35,7 @@ abstract class XmpGoogleNamespace extends XmpNamespace {
class XmpGAudioNamespace extends XmpGoogleNamespace { class XmpGAudioNamespace extends XmpGoogleNamespace {
static const ns = 'GAudio'; static const ns = 'GAudio';
XmpGAudioNamespace(Map<String, String> rawProps) : super(ns, rawProps); const XmpGAudioNamespace(Map<String, String> rawProps) : super(ns, rawProps);
@override @override
List<Tuple2<String, String>> get dataProps => const [Tuple2('$ns:Data', '$ns:Mime')]; List<Tuple2<String, String>> get dataProps => const [Tuple2('$ns:Data', '$ns:Mime')];
@ -47,7 +47,7 @@ class XmpGAudioNamespace extends XmpGoogleNamespace {
class XmpGDepthNamespace extends XmpGoogleNamespace { class XmpGDepthNamespace extends XmpGoogleNamespace {
static const ns = 'GDepth'; static const ns = 'GDepth';
XmpGDepthNamespace(Map<String, String> rawProps) : super(ns, rawProps); const XmpGDepthNamespace(Map<String, String> rawProps) : super(ns, rawProps);
@override @override
List<Tuple2<String, String>> get dataProps => const [ List<Tuple2<String, String>> get dataProps => const [
@ -62,7 +62,7 @@ class XmpGDepthNamespace extends XmpGoogleNamespace {
class XmpGImageNamespace extends XmpGoogleNamespace { class XmpGImageNamespace extends XmpGoogleNamespace {
static const ns = 'GImage'; static const ns = 'GImage';
XmpGImageNamespace(Map<String, String> rawProps) : super(ns, rawProps); const XmpGImageNamespace(Map<String, String> rawProps) : super(ns, rawProps);
@override @override
List<Tuple2<String, String>> get dataProps => const [Tuple2('$ns:Data', '$ns:Mime')]; List<Tuple2<String, String>> get dataProps => const [Tuple2('$ns:Data', '$ns:Mime')];

View file

@ -5,7 +5,7 @@ import 'package:aves/widgets/viewer/info/metadata/xmp_namespaces.dart';
class XmpPhotoshopNamespace extends XmpNamespace { class XmpPhotoshopNamespace extends XmpNamespace {
static const ns = 'photoshop'; static const ns = 'photoshop';
XmpPhotoshopNamespace(Map<String, String> rawProps) : super(ns, rawProps); const XmpPhotoshopNamespace(Map<String, String> rawProps) : super(ns, rawProps);
@override @override
String get displayTitle => 'Photoshop'; String get displayTitle => 'Photoshop';

View file

@ -8,7 +8,7 @@ class XmpTiffNamespace extends XmpNamespace {
@override @override
String get displayTitle => 'TIFF'; String get displayTitle => 'TIFF';
XmpTiffNamespace(Map<String, String> rawProps) : super(ns, rawProps); const XmpTiffNamespace(Map<String, String> rawProps) : super(ns, rawProps);
@override @override
String formatValue(XmpProp prop) { String formatValue(XmpProp prop) {

View file

@ -114,7 +114,7 @@ class XmpNoteNamespace extends XmpNamespace {
// `xmpNote:HasExtendedXMP` is structural and should not be displayed to users // `xmpNote:HasExtendedXMP` is structural and should not be displayed to users
static const hasExtendedXmp = '$ns:HasExtendedXMP'; static const hasExtendedXmp = '$ns:HasExtendedXMP';
XmpNoteNamespace(Map<String, String> rawProps) : super(ns, rawProps); const XmpNoteNamespace(Map<String, String> rawProps) : super(ns, rawProps);
@override @override
bool extractData(XmpProp prop) { bool extractData(XmpProp prop) {