Skip to content

Commit

Permalink
Refactor WidgetImage constructor to require fileName and update toStr…
Browse files Browse the repository at this point in the history
…ing method for improved clarity
  • Loading branch information
frankmer committed Nov 27, 2024
1 parent 0a8309f commit 496d141
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/model/widget_image.dart
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,14 @@ class WidgetImage {
String get fullFileName => '$fileName.${fileType.extension}';

WidgetImage({
required this.fileName,
required this.fileType,
required this.imageData,
required this.fileName,
});

@override
String toString() {
return 'WidgetImage{fileType: $fileType, imageData: $imageData}';
return 'WidgetImage(fileName: $fileName, fileType: $fileType, imageData: $imageData)';
}

@override
Expand Down

0 comments on commit 496d141

Please sign in to comment.